[FFmpeg-cvslog] r25742 - trunk/ffmpeg.c

aurel subversion
Sat Nov 13 14:46:37 CET 2010


Author: aurel
Date: Sat Nov 13 14:46:36 2010
New Revision: 25742

Log:
add global header support for subtitles encoding

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Nov 13 11:01:18 2010	(r25741)
+++ trunk/ffmpeg.c	Sat Nov 13 14:46:36 2010	(r25742)
@@ -3577,6 +3577,10 @@ static void new_subtitle_stream(AVFormat
     if(subtitle_codec_tag)
         subtitle_enc->codec_tag= subtitle_codec_tag;
 
+    if (oc->oformat->flags & AVFMT_GLOBALHEADER) {
+        subtitle_enc->flags |= CODEC_FLAG_GLOBAL_HEADER;
+        avcodec_opts[AVMEDIA_TYPE_SUBTITLE]->flags |= CODEC_FLAG_GLOBAL_HEADER;
+    }
     if (subtitle_stream_copy) {
         st->stream_copy = 1;
     } else {



More information about the ffmpeg-cvslog mailing list