1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/exr: fix huf_decode

This commit is contained in:
Martin Vignali 2016-04-12 20:01:08 +02:00 committed by Paul B Mahol
parent 392b0a25c2
commit ac07e57c39

View File

@ -520,7 +520,8 @@ static int huf_decode(const uint64_t *hcode, const HufDec *hdecod,
uint16_t *outb = out;
uint16_t *oe = out + no;
const uint8_t *ie = gb->buffer + (nbits + 7) / 8; // input byte size
uint8_t cs, s;
uint8_t cs;
uint16_t s;
int i, lc = 0;
while (gb->buffer < ie) {