]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avienc.c
Cosmetics
[ffmpeg] / libavformat / avienc.c
index 8a026e0df5cb1d70a45eb9c1ab8b9dc97e8fbeee..8f379e9b8ca5710d3af1ec4f1c34d1e70892da0d 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) {
@@ -575,5 +570,6 @@ AVOutputFormat avi_muxer = {
     avi_write_header,
     avi_write_packet,
     avi_write_trailer,
+    .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
 };
 #endif //CONFIG_AVI_MUXER