[FFmpeg-cvslog] txd: Fix "set but not used" warning

Michael Niedermayer git at videolan.org
Sun Apr 1 22:50:24 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr  1 21:58:29 2012 +0200| [b76a160ffa978040218a2781ac6aa4ff7a64481f] | committer: Michael Niedermayer

txd: Fix "set but not used" warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b76a160ffa978040218a2781ac6aa4ff7a64481f
---

 libavcodec/txd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/txd.c b/libavcodec/txd.c
index cf88a9b..623364c 100644
--- a/libavcodec/txd.c
+++ b/libavcodec/txd.c
@@ -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;



More information about the ffmpeg-cvslog mailing list