From 0eeed6e9c0fce48f84b72cec257eea0e51a73bb1 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Mon, 16 Mar 2009 23:53:57 +0100 Subject: [PATCH] Parse *only* NAL SEI for Closed Caption. --- modules/packetizer/h264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c index e1cf4dda22..175643e093 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 */ -- 2.39.2