From c32c1ec65a27bfc9a0d2fa5ee4dbee13716e7db5 Mon Sep 17 00:00:00 2001 From: "Wang, Shanshan1" Date: Thu, 18 Jul 2024 01:33:35 +0000 Subject: [PATCH] [Decode] Fix AV1 bitdepth change several sequence issue Fix AV1 bitdepth change several sequence not support issue --- _studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp b/_studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp index 16e6d8df5b..2ec600c516 100755 --- a/_studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp +++ b/_studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp @@ -121,6 +121,7 @@ namespace UMC_AV1_DECODER old_sps->max_frame_height = new_sps->max_frame_height; old_sps->seq_profile = new_sps->seq_profile; old_sps->film_grain_param_present = new_sps->film_grain_param_present; + old_sps->color_config.BitDepth = new_sps->color_config.BitDepth; return false; } @@ -144,6 +145,12 @@ namespace UMC_AV1_DECODER return true; } + if (old_sps->color_config.BitDepth != new_sps->color_config.BitDepth) + { + old_sps->color_config.BitDepth = new_sps->color_config.BitDepth; + return true; + } + return false; }