[FFmpeg-cvslog] r17425 - trunk/output_example.c

benoit subversion
Wed Feb 18 09:42:36 CET 2009


Author: benoit
Date: Wed Feb 18 09:42:35 2009
New Revision: 17425

Log:
Set global header flag for every container that requires it.
Patch by Art Clarke a$(name) xuggle com

Modified:
   trunk/output_example.c

Modified: trunk/output_example.c
==============================================================================
--- trunk/output_example.c	Wed Feb 18 08:14:23 2009	(r17424)
+++ trunk/output_example.c	Wed Feb 18 09:42:35 2009	(r17425)
@@ -224,7 +224,7 @@ static AVStream *add_video_stream(AVForm
         c->mb_decision=2;
     }
     // some formats want stream headers to be separate
-    if(!strcmp(oc->oformat->name, "mp4") || !strcmp(oc->oformat->name, "mov") || !strcmp(oc->oformat->name, "3gp"))
+    if(oc->oformat->flags & AVFMT_GLOBALHEADER)
         c->flags |= CODEC_FLAG_GLOBAL_HEADER;
 
     return st;




More information about the ffmpeg-cvslog mailing list