summaryrefslogtreecommitdiff
path: root/libavcodec/xxan.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-21 00:10:20 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-21 03:08:29 +0100
commitff05fd6249e27bfaa850f3e978670b826ab7d282 (patch)
treed2b68e562bb90833c2674ace3e44949f18e37d91 /libavcodec/xxan.c
parent8a90148dfea9ae2adabaa407eb437d7c14f4aed6 (diff)
xxan: remove write-only variable
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/xxan.c')
-rw-r--r--libavcodec/xxan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/xxan.c b/libavcodec/xxan.c
index 4ed870052f..ebb88aead4 100644
--- a/libavcodec/xxan.c
+++ b/libavcodec/xxan.c
@@ -296,11 +296,8 @@ static int xan_decode_frame_type0(AVCodecContext *avctx)
}
if (corr_off) {
- int corr_end, dec_size;
+ int dec_size;
- corr_end = (s->gb.buffer_end - s->gb.buffer_start);
- if (chroma_off > corr_off)
- corr_end = chroma_off;
bytestream2_seek(&s->gb, 8 + corr_off, SEEK_SET);
dec_size = xan_unpack(s, s->scratch_buffer, s->buffer_size);
if (dec_size < 0)