[vlc-commits] packetizer: h264: fix picture AU start

Francois Cartegnie git at videolan.org
Sun Dec 20 17:10:31 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Dec 20 17:07:24 2015 +0100| [cb1f0492ab101ced507b65e7b669a8b66c11e928] | committer: Francois Cartegnie

packetizer: h264: fix picture AU start

According to 7.4.1.2.3, SPS extension must only follow
sps and can't be picture start then.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb1f0492ab101ced507b65e7b669a8b66c11e928
---

 modules/packetizer/h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 3a1001a..cefa9ee 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -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 ||
              i_nal_type == H264_NAL_SEI ||
-             ( i_nal_type >= H264_NAL_SPS_EXT && i_nal_type <= H264_NAL_RESERVED_18 ) )
+             ( i_nal_type >= H264_NAL_PREFIX && i_nal_type <= H264_NAL_RESERVED_18 ) )
     {
         if( p_sys->b_slice )
             p_pic = OutputPicture( p_dec );



More information about the vlc-commits mailing list