[FFmpeg-cvslog] avcodec/utvideodec: fix use of get_vlc2()

Michael Niedermayer git at videolan.org
Mon Jun 9 15:21:06 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun  9 14:50:17 2014 +0200| [29a1164e6029875f896cec56c8d92369cd59a959] | committer: Michael Niedermayer

avcodec/utvideodec: fix use of get_vlc2()

The max depth is 3

Found-by: Christophe Gisquet <christophe.gisquet at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/utvideodec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
index 296e011..4d53c1f 100644
--- a/libavcodec/utvideodec.c
+++ b/libavcodec/utvideodec.c
@@ -155,7 +155,7 @@ static int decode_plane(UtvideoContext *c, int plane_no,
                            "Slice decoding ran out of bits\n");
                     goto fail;
                 }
-                pix = get_vlc2(&gb, vlc.table, vlc.bits, 4);
+                pix = get_vlc2(&gb, vlc.table, vlc.bits, 3);
                 if (pix < 0) {
                     av_log(c->avctx, AV_LOG_ERROR, "Decoding error\n");
                     goto fail;



More information about the ffmpeg-cvslog mailing list