summaryrefslogtreecommitdiff
path: root/libavcodec/txd.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-04-19 14:55:06 +0200
committerDiego Biurrun <diego@biurrun.de>2012-05-07 14:17:42 +0200
commitea1405064284a9a67793076c8048747480f01a96 (patch)
tree7de4338d515353b0743c40861bfebabb695f663c /libavcodec/txd.c
parent246b050f51aa3c1ddd5260dee66e7bc56bc02ea1 (diff)
txd: Remove write-only variable in txd_decode_frame().
libavcodec/txd.c:49:60: warning: variable ‘mipmap_count’ set but not used
Diffstat (limited to 'libavcodec/txd.c')
-rw-r--r--libavcodec/txd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/txd.c b/libavcodec/txd.c
index bfb2bb6ea2..d69f9fa0ae 100644
--- a/libavcodec/txd.c
+++ b/libavcodec/txd.c
@@ -46,7 +46,7 @@ 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 y, v;
uint8_t *ptr;
uint32_t *pal;
@@ -58,8 +58,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
w = bytestream2_get_le16(&gb);
h = bytestream2_get_le16(&gb);
depth = bytestream2_get_byte(&gb);
- mipmap_count = bytestream2_get_byte(&gb);
- bytestream2_skip(&gb, 1);
+ bytestream2_skip(&gb, 2);
flags = bytestream2_get_byte(&gb);
if (version < 8 || version > 9) {