diff options
author | Calcium | 2005-03-23 12:52:24 +0000 |
---|---|---|
committer | Michael Niedermayer | 2005-03-23 12:52:24 +0000 |
commit | c64d476ccde1682728e693c750bcc96129defd0c (patch) | |
tree | 2a7e13bd256927d1ad71c541ce2c0792a3bcd86d /ffmpeg.c | |
parent | 649b918c9f0ad4699ae756a9deace5806c6d683c (diff) |
30_clean_up_global_header_flag.patch by (Calcium | calcium nurs or jp)
Originally committed as revision 4072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3096,7 +3096,7 @@ static void opt_output_file(const char *filename) if(video_codec_tag) video_enc->codec_tag= video_codec_tag; - if(!strcmp(file_oformat->name, "mp4") || !strcmp(file_oformat->name, "mov") || !strcmp(file_oformat->name, "3gp")) + if (file_oformat->flags & AVFMT_GLOBALHEADER) video_enc->flags |= CODEC_FLAG_GLOBAL_HEADER; if (video_stream_copy) { st->stream_copy = 1; @@ -3367,7 +3367,7 @@ static void opt_output_file(const char *filename) if(audio_codec_tag) audio_enc->codec_tag= audio_codec_tag; - if(!strcmp(file_oformat->name, "mp4") || !strcmp(file_oformat->name, "mov") || !strcmp(file_oformat->name, "3gp")) + if (file_oformat->flags & AVFMT_GLOBALHEADER) audio_enc->flags |= CODEC_FLAG_GLOBAL_HEADER; if (audio_stream_copy) { st->stream_copy = 1; |