Skip to content

Commit

Permalink
mov/mp4 muxer cleanup (mostly cosmetics/simplifications & global head…
Browse files Browse the repository at this point in the history
…er fix)

Originally committed as revision 2249 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
michaelni committed Sep 9, 2003
1 parent b160941 commit 6e6d6dc
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 124 deletions.
3 changes: 3 additions & 0 deletions ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e6d6dc

Please sign in to comment.