aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorCalcium2005-03-23 12:52:24 +0000
committerMichael Niedermayer2005-03-23 12:52:24 +0000
commitc64d476ccde1682728e693c750bcc96129defd0c (patch)
tree2a7e13bd256927d1ad71c541ce2c0792a3bcd86d /ffmpeg.c
parent649b918c9f0ad4699ae756a9deace5806c6d683c (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ba9aa027b4..bbcf998519 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;