txd: Fix "set but not used" warning
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Apr 2012 19:58:29 +0000 (21:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Apr 2012 19:58:29 +0000 (21:58 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/txd.c

index cf88a9b..623364c 100644 (file)
@@ -47,7 +47,8 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     GetByteContext gb;
     AVFrame *picture = data;
     AVFrame * const p = &s->picture;
-    unsigned int version, w, h, d3d_format, depth, stride, mipmap_count, flags;
+    unsigned int version, w, h, d3d_format, depth, stride, flags;
+    unsigned int av_unused mipmap_count;
     unsigned int y, v;
     uint8_t *ptr;
     uint32_t *pal;