[FFmpeg-devel] [PATCH] remove redundant codec_get_bmp_tag() call in avi_write_header()

Mans Rullgard mans
Sat Jul 7 23:50:46 CEST 2007


diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index ac8b267..8f379e9 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -197,11 +197,6 @@ static int avi_write_header(AVFormatContext *s)
 
         stream = s->streams[i]->codec;
 
-        /* FourCC should really be set by the codec itself */
-        if (! stream->codec_tag) {
-            stream->codec_tag = codec_get_bmp_tag(stream->codec_id);
-        }
-
         /* stream generic header */
         strh = start_tag(pb, "strh");
         switch(stream->codec_type) {
-- 
1.5.2.2





More information about the ffmpeg-devel mailing list