Commit ff05fd62 authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

xxan: remove write-only variable

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8a90148d
...@@ -296,11 +296,8 @@ static int xan_decode_frame_type0(AVCodecContext *avctx) ...@@ -296,11 +296,8 @@ static int xan_decode_frame_type0(AVCodecContext *avctx)
} }
if (corr_off) { 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); bytestream2_seek(&s->gb, 8 + corr_off, SEEK_SET);
dec_size = xan_unpack(s, s->scratch_buffer, s->buffer_size); dec_size = xan_unpack(s, s->scratch_buffer, s->buffer_size);
if (dec_size < 0) if (dec_size < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment