From ff05fd6249e27bfaa850f3e978670b826ab7d282 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 21 Mar 2012 00:10:20 +0000 Subject: [PATCH] xxan: remove write-only variable Signed-off-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/xxan.c | 5 +---- 1 file changed, 1 insertion(+), 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)