diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-09 14:50:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-09 14:56:00 +0200 |
commit | 29a1164e6029875f896cec56c8d92369cd59a959 (patch) | |
tree | 3da03d4460dc6c8f87a27dba9a610bc126b4955d /libavcodec/utvideodec.c | |
parent | 334aafe5650007dab180f12a49081ad1561f0e08 (diff) | |
download | ffmpeg-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.c | 2 |
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; |