aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2016-04-12 20:01:08 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-12 22:54:56 +0200
commitac07e57c39de856cb88ee6ff0669da3ced2fc694 (patch)
tree093ff7fd9fa8074216d52fb0181a861984aa6aaf /libavcodec/exr.c
parent392b0a25c236e7dc7e4976a5f1bed7485f801059 (diff)
downloadffmpeg-ac07e57c39de856cb88ee6ff0669da3ced2fc694.tar.gz
avcodec/exr: fix huf_decode
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 250d99fedb..f54ffad1c7 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -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) {