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 authored and harishdm committed Nov 12, 2024
1 parent f6a923b commit ba74b08
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 ba74b08

Please sign in to comment.