[FFmpeg-devel] [PATCH] Fix output_example.c to set global headers on codecs for ANY container requiring them
Art Clarke
aclarke
Mon Feb 16 02:24:51 CET 2009
$subject
--
http://www.xuggle.com/
xu?ggle (z?' gl) v. To freely encode, decode, and experience audio and
video.
Use Xuggle to get the power of FFMPEG in Java.
-------------- next part --------------
Index: output_example.c
===================================================================
--- output_example.c (revision 17348)
+++ output_example.c (working copy)
@@ -224,7 +231,7 @@
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-devel
mailing list