packetizer: h264: store IDR noprevoutput flag

This commit is contained in:
François Cartegnie 2023-10-25 14:24:58 +02:00 committed by Steve Lhomme
parent 67900dd20c
commit 00cdd0986f
2 changed files with 7 additions and 1 deletions

View File

@ -185,7 +185,12 @@ bool h264_decode_slice( const uint8_t *p_buffer, size_t i_buffer,
}
/* dec_ref_pic_marking() */
if( p_slice->i_nal_type != 5 ) /* IdrFlag */
if( p_slice->i_nal_type == 5 ) /* IdrFlag */
{
p_slice->no_output_of_prior_pics_flag = bs_read1( &s );
bs_skip( &s, 1 ); /* long_term_reference_flag */
}
else
{
if( bs_read1( &s ) ) /* adaptive_ref_pic_marking_mode_flag */
{

View File

@ -51,6 +51,7 @@ typedef struct
int i_delta_pic_order_cnt0;
int i_delta_pic_order_cnt1;
bool no_output_of_prior_pics_flag;
bool has_mmco5;
} h264_slice_t;