remove redundant codec_get_bmp_tag() call in avi_write_header()
authorMåns Rullgård <mans@mansr.com>
Sun, 8 Jul 2007 01:41:06 +0000 (01:41 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 8 Jul 2007 01:41:06 +0000 (01:41 +0000)
it is incorrect and av_write_header() already does the right thing

Originally committed as revision 9527 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avienc.c

index ac8b267..8f379e9 100644 (file)
@@ -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) {