summaryrefslogtreecommitdiffstats
path: root/libavcodec/utvideodec.c
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 /libavcodec/utvideodec.c
parent334aafe5650007dab180f12a49081ad1561f0e08 (diff)
downloadffmpeg-streaming-29a1164e6029875f896cec56c8d92369cd59a959.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libavcodec/utvideodec.c')
-rw-r--r--libavcodec/utvideodec.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud