Commit f6384a0d authored by Francois Cartegnie's avatar Francois Cartegnie

packetizer: h264: add more nal unit types

parent fb4119ba
...@@ -518,7 +518,7 @@ static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_ts_used, block_t *p_fr ...@@ -518,7 +518,7 @@ static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_ts_used, block_t *p_fr
} }
else if( i_nal_type == H264_NAL_AU_DELIMITER || else if( i_nal_type == H264_NAL_AU_DELIMITER ||
i_nal_type == H264_NAL_SEI || i_nal_type == H264_NAL_SEI ||
( i_nal_type >= 13 && i_nal_type <= 18 ) ) ( i_nal_type >= H264_NAL_SPS_EXT && i_nal_type <= H264_NAL_RESERVED_18 ) )
{ {
if( p_sys->b_slice ) if( p_sys->b_slice )
p_pic = OutputPicture( p_dec ); p_pic = OutputPicture( p_dec );
......
...@@ -60,8 +60,22 @@ enum h264_nal_unit_type_e ...@@ -60,8 +60,22 @@ enum h264_nal_unit_type_e
H264_NAL_SEI = 6, /* ref_idc == 0 */ H264_NAL_SEI = 6, /* ref_idc == 0 */
H264_NAL_SPS = 7, H264_NAL_SPS = 7,
H264_NAL_PPS = 8, H264_NAL_PPS = 8,
H264_NAL_AU_DELIMITER= 9 H264_NAL_AU_DELIMITER= 9,
/* ref_idc == 0 for 6,9,10,11,12 */ /* ref_idc == 0 for 6,9,10,11,12 */
H264_NAL_END_OF_SEQ = 10,
H264_NAL_END_OF_STREAM = 11,
H264_NAL_FILLER_DATA = 12,
H264_NAL_SPS_EXT = 13,
H264_NAL_PREFIX = 14,
H264_NAL_SUBSET_SPS = 15,
H264_NAL_DEPTH_PS = 16,
H264_NAL_RESERVED_17 = 17,
H264_NAL_RESERVED_18 = 18,
H264_NAL_SLICE_WP = 19,
H264_NAL_SLICE_EXT = 20,
H264_NAL_SLICE_3D_EXT= 21,
H264_NAL_RESERVED_22 = 22,
H264_NAL_RESERVED_23 = 23,
}; };
/* Defined in H.264 annex D */ /* Defined in H.264 annex D */
......
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