Skip to content

Commit

Permalink
[Decode] Fix AV1 bitdepth change several sequence issue
Browse files Browse the repository at this point in the history
Fix AV1 bitdepth change several sequence not support issue
  • Loading branch information
shansha3 authored and gfxVPLsdm committed Jul 18, 2024
1 parent 7f317a5 commit c32c1ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _studio/shared/umc/codec/av1_dec/src/umc_av1_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit c32c1ec

Please sign in to comment.