From c12b0d86ad594d642addf0e512449babd24e7fba Mon Sep 17 00:00:00 2001 From: Art Clarke <aclarke@vlideshow.com> Date: Wed, 18 Feb 2009 08:42:35 +0000 Subject: [PATCH] Set global header flag for every container that requires it. Patch by Art Clarke a$(name) xuggle com Originally committed as revision 17425 to svn://svn.ffmpeg.org/ffmpeg/trunk --- output_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_example.c b/output_example.c index 6cd1b34080b..82df06b8bff 100644 --- a/output_example.c +++ b/output_example.c @@ -224,7 +224,7 @@ static AVStream *add_video_stream(AVFormatContext *oc, int codec_id) 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; -- GitLab