Commit 431812a1 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: fix next VCL NAL test

According to ISO 14496-10 7.4.1.2.4,
next first NAL of next picture appears when
nal_ref_ids differs with one being equal to 0.
parent 4edf8e5e
......@@ -1229,7 +1229,7 @@ static void ParseSlice( decoder_t *p_dec, bool *pb_new_picture, slice_t *p_slice
if( slice.i_frame_num != p_sys->slice.i_frame_num ||
slice.i_pic_parameter_set_id != p_sys->slice.i_pic_parameter_set_id ||
slice.i_field_pic_flag != p_sys->slice.i_field_pic_flag ||
slice.i_nal_ref_idc != p_sys->slice.i_nal_ref_idc )
!slice.i_nal_ref_idc != !p_sys->slice.i_nal_ref_idc )
b_pic = true;
if( (slice.i_bottom_field_flag != -1) &&
(p_sys->slice.i_bottom_field_flag != -1) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment