diff options
author | Art Clarke <aclarke@vlideshow.com> | 2009-02-18 08:42:35 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-02-18 08:42:35 +0000 |
commit | c12b0d86ad594d642addf0e512449babd24e7fba (patch) | |
tree | 287843725f6309abd55dc29f4ed573807a790a91 /output_example.c | |
parent | 7b05a81687aa1e871bb0c359726691257b37f4e1 (diff) | |
download | ffmpeg-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.c | 2 |
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; |