1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-06-14 22:15:12 +02:00

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
This commit is contained in:
Calcium
2005-03-23 12:52:24 +00:00
committed by Michael Niedermayer
parent 649b918c9f
commit c64d476ccd
3 changed files with 9 additions and 3 deletions

View File

@ -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;