summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-09-09 23:03:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-09 23:03:04 +0000
commit6e6d6dc0a50bef6e07fb574c638b01f9802a7ba8 (patch)
tree67f4c3290d4f9708764f839218d7f9629c4afcea /ffmpeg.c
parentb160941221f66f4da3c6ac24ba2398decd13e0e3 (diff)
mov/mp4 muxer cleanup (mostly cosmetics/simplifications & global header fix)
Originally committed as revision 2249 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 74c172efb9..60869b827a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2191,6 +2191,9 @@ static void opt_output_file(const char *filename)
avcodec_get_context_defaults(&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) {
st->stream_copy = 1;
video_enc->codec_type = CODEC_TYPE_VIDEO;