[vlc-devel] commit: Parse *only* NAL SEI for Closed Caption. (Laurent Aimar )

git version control git at videolan.org
Tue Mar 17 20:08:48 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Mar 16 23:53:57 2009 +0100| [0eeed6e9c0fce48f84b72cec257eea0e51a73bb1] | committer: Laurent Aimar 

Parse *only* NAL SEI for Closed Caption.

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

 modules/packetizer/h264.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index e1cf4dd..175643e 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -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 */




More information about the vlc-devel mailing list