aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-09 14:50:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-09 14:56:00 +0200
commit29a1164e6029875f896cec56c8d92369cd59a959 (patch)
tree3da03d4460dc6c8f87a27dba9a610bc126b4955d
parent334aafe5650007dab180f12a49081ad1561f0e08 (diff)
downloadffmpeg-29a1164e6029875f896cec56c8d92369cd59a959.tar.gz
avcodec/utvideodec: fix use of get_vlc2()
The max depth is 3 Found-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utvideodec.c2
1 files changed, 1 insertions, 1 deletions
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;