[FFmpeg-cvslog] avcodec/exr: fix huf_decode

Martin Vignali git at videolan.org
Tue Apr 12 22:56:01 CEST 2016


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Tue Apr 12 20:01:08 2016 +0200| [ac07e57c39de856cb88ee6ff0669da3ced2fc694] | committer: Paul B Mahol

avcodec/exr: fix huf_decode

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac07e57c39de856cb88ee6ff0669da3ced2fc694
---

 libavcodec/exr.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 250d99f..f54ffad 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) {



More information about the ffmpeg-cvslog mailing list