Skip to content

Commit

Permalink
libavc: Fix dynamic color aspects support
Browse files Browse the repository at this point in the history
Test: atest android.mediav2.cts.DecoderDynamicColorAspectTest

Change-Id: Id64ddb874efe1ab51cd9b2359bfa9526bc1ccd6e
  • Loading branch information
rakeshnitb committed Nov 6, 2024
1 parent 7d6f857 commit 9e36752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/ih264d_parse_headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,9 +1096,9 @@ WORD32 ih264d_parse_sps(dec_struct_t *ps_dec, dec_bit_stream_t *ps_bitstrm)
if(ret != OK)
return ret;

if (ps_dec->pu1_bits_buf_dynamic != NULL) {
if (ps_dec->pu1_bits_buf_dynamic != NULL && ps_dec->ps_cur_sps != NULL) {
vui_t *ps_vui = &ps_seq->s_vui;
dec_seq_params_t *ps_sps_old = ps_dec->ps_sps;
dec_seq_params_t *ps_sps_old = ps_dec->ps_cur_sps;
vui_t *ps_vui_old = &ps_sps_old->s_vui;

if (ps_vui->u1_video_full_range_flag != ps_vui_old->u1_video_full_range_flag ||
Expand Down

0 comments on commit 9e36752

Please sign in to comment.