aboutsummaryrefslogtreecommitdiffstats
path: root/output_example.c
diff options
context:
space:
mode:
authorArt Clarke <aclarke@vlideshow.com>2009-02-18 08:42:35 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-18 08:42:35 +0000
commitc12b0d86ad594d642addf0e512449babd24e7fba (patch)
tree287843725f6309abd55dc29f4ed573807a790a91 /output_example.c
parent7b05a81687aa1e871bb0c359726691257b37f4e1 (diff)
downloadffmpeg-c12b0d86ad594d642addf0e512449babd24e7fba.tar.gz
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
Diffstat (limited to 'output_example.c')
-rw-r--r--output_example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output_example.c b/output_example.c
index 6cd1b34080..82df06b8bf 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;