lavc/dxv: Support more real-world old version samples.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 8 Sep 2015 08:18:16 +0000 (10:18 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 8 Sep 2015 08:18:16 +0000 (10:18 +0200)
libavcodec/dxv.c

index 69bd2a1..e20e940 100644 (file)
@@ -356,7 +356,7 @@ static int dxv_decode(AVCodecContext *avctx, void *data,
             av_log(avctx, AV_LOG_DEBUG, "LZF compression and DXT5 texture ");
             ctx->tex_funct = ctx->texdsp.dxt5_block;
             ctx->tex_step  = 16;
-        } else if (old_type & 0x20) {
+        } else if (old_type & 0x20 || old_type & 0x2) {
             av_log(avctx, AV_LOG_DEBUG, "LZF compression and DXT1 texture ");
             ctx->tex_funct = ctx->texdsp.dxt1_block;
             ctx->tex_step  = 8;