avformat/wtvdec: populate codec_tag from BITMAPINFOHEADER
authorPeter Ross <pross@xvid.org>
Fri, 4 Apr 2014 11:07:47 +0000 (22:07 +1100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Apr 2014 15:20:38 +0000 (17:20 +0200)
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/wtvdec.c

index bf27f29..597a11f 100644 (file)
@@ -562,7 +562,7 @@ static int parse_videoinfoheader2(AVFormatContext *s, AVStream *st)
     AVIOContext *pb = wtv->pb;
 
     avio_skip(pb, 72);  // picture aspect ratio is unreliable
-    ff_get_bmp_header(pb, st, NULL);
+    st->codec->codec_tag = ff_get_bmp_header(pb, st, NULL);
 
     return 72 + 40;
 }