]> git.sesse.net Git - vlc/commitdiff
Parse *only* NAL SEI for Closed Caption.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 16 Mar 2009 22:53:57 +0000 (23:53 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 17 Mar 2009 19:06:49 +0000 (20:06 +0100)
modules/packetizer/h264.c

index e1cf4dda226cbb10a077d558750eb6a285600be8..175643e0937018025aac49f24278dfd1c596dee8 100644 (file)
@@ -758,7 +758,8 @@ static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_used_ts, block_t *p_fr
             p_pic = OutputPicture( p_dec );
 
         /* Parse SEI for CC support */
-        ParseSei( p_dec, p_frag );
+        if( i_nal_type == NAL_SEI )
+            ParseSei( p_dec, p_frag );
     }
 
     /* Append the block */