Commit f4b49a02 authored by benoit's avatar benoit

Set global header flag for every container that requires it.

Patch by Art Clarke a$(name) xuggle com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17425 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 49baf20c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment