Ticket #4842: 0001-dxv-Adjust-old-version-check.patch

File 0001-dxv-Adjust-old-version-check.patch, 971 bytes (added by projectsymphony, 11 years ago)
  • libavcodec/dxv.c

    From 36d04f9642df2953dfab27bd78b61866cf256d5b Mon Sep 17 00:00:00 2001
    From: Vittorio Giovara <vittorio.giovara@gmail.com>
    Date: Tue, 22 Sep 2015 13:53:16 +0200
    Subject: [PATCH] dxv: Adjust old version check
    
    ---
     libavcodec/dxv.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
    index e375734..7e85f5b 100644
    a b static int dxv_decode(AVCodecContext *avctx, void *data,  
    356356            av_log(avctx, AV_LOG_DEBUG, "LZF compression and DXT5 texture ");
    357357            ctx->tex_funct = ctx->texdsp.dxt5_block;
    358358            ctx->tex_step  = 16;
    359         } else if (old_type & 0x20 || old_type & 0x2) {
     359        } else if (old_type & 0x20 || (old_type & 0x0F) == 2) {
    360360            av_log(avctx, AV_LOG_DEBUG, "LZF compression and DXT1 texture ");
    361361            ctx->tex_funct = ctx->texdsp.dxt1_block;
    362362            ctx->tex_step  = 8;