From 29a1164e6029875f896cec56c8d92369cd59a959 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 9 Jun 2014 14:50:17 +0200 Subject: [PATCH] avcodec/utvideodec: fix use of get_vlc2() The max depth is 3 Found-by: Christophe Gisquet Signed-off-by: Michael Niedermayer --- libavcodec/utvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index 296e01125b..4d53c1f9cd 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;