From e70d5a46267964a0f25f8da7b52138be32b8c54b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 8 Sep 2024 18:49:08 +0200 Subject: [PATCH] Use correct dimensions for video --- client/decoder/android/android_decoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/decoder/android/android_decoder.cpp b/client/decoder/android/android_decoder.cpp index 679c59dc..d4c687c1 100644 --- a/client/decoder/android/android_decoder.cpp +++ b/client/decoder/android/android_decoder.cpp @@ -129,8 +129,8 @@ decoder::decoder( AImageReader * ir; check(AImageReader_newWithUsage( - description.width, - description.height, + description.video_width, + description.video_height, AIMAGE_FORMAT_PRIVATE, AHARDWAREBUFFER_USAGE_CPU_READ_NEVER | AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, 5 /* maxImages */, @@ -193,8 +193,8 @@ void decoder::push_data(std::span> data, uint64_t frame AMediaFormat_setString(format.get(), AMEDIAFORMAT_KEY_MIME, mime(description.codec)); // AMediaFormat_setInt32(format.get(), "vendor.qti-ext-dec-low-latency.enable", 1); // Qualcomm low // latency mode - AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_WIDTH, description.width); - AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_HEIGHT, description.height); + AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_WIDTH, description.video_width); + AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_HEIGHT, description.video_height); AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_OPERATING_RATE, std::ceil(fps)); AMediaFormat_setInt32(format.get(), AMEDIAFORMAT_KEY_PRIORITY, 0);