From 222cc6ea26287bad018f73ae97212847182e5f1b Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 25 Oct 2020 22:42:29 +0100 Subject: [PATCH] avcodec/clearvideo: Use minimal max_depth in get_vlc2() Signed-off-by: Andreas Rheinhardt --- libavcodec/clearvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/clearvideo.c b/libavcodec/clearvideo.c index 0885b82837..a5f9cc3ca2 100644 --- a/libavcodec/clearvideo.c +++ b/libavcodec/clearvideo.c @@ -369,7 +369,7 @@ static TileInfo* decode_tile_info(GetBitContext *gb, LevelCodes *lc, int level) } if (lc[level].mv_cb.table) { - uint16_t mv_code = get_vlc2(gb, lc[level].mv_cb.table, CLV_VLC_BITS, 3); + uint16_t mv_code = get_vlc2(gb, lc[level].mv_cb.table, CLV_VLC_BITS, 2); if (mv_code != MV_ESC) { mv.x = (int8_t)(mv_code & 0xff);