Commit 6e6d6dc0 authored by Michael Niedermayer's avatar Michael Niedermayer

mov/mp4 muxer cleanup (mostly cosmetics/simplifications & global header fix)

Originally committed as revision 2249 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b1609412
...@@ -2191,6 +2191,9 @@ static void opt_output_file(const char *filename) ...@@ -2191,6 +2191,9 @@ static void opt_output_file(const char *filename)
avcodec_get_context_defaults(&st->codec); avcodec_get_context_defaults(&st->codec);
video_enc = &st->codec; video_enc = &st->codec;
if(!strcmp(file_oformat->name, "mp4") || !strcmp(file_oformat->name, "mov") || !strcmp(file_oformat->name, "3gp"))
video_enc->flags |= CODEC_FLAG_GLOBAL_HEADER;
if (video_stream_copy) { if (video_stream_copy) {
st->stream_copy = 1; st->stream_copy = 1;
video_enc->codec_type = CODEC_TYPE_VIDEO; video_enc->codec_type = CODEC_TYPE_VIDEO;
......
This diff is collapsed.
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