[FFmpeg-devel] [PATCH 7/9] Revert "avcodec/vlc: add correct upper limit for recursive function"

Michael Niedermayer michael at niedermayer.cc
Mon Oct 23 00:51:11 EEST 2023


This reverts commit fa20f5cd9e131f22da06ef57bf5aedd87ff51a90.
---
 libavcodec/vlc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vlc.c b/libavcodec/vlc.c
index 4c96fcddc9b..79544006677 100644
--- a/libavcodec/vlc.c
+++ b/libavcodec/vlc.c
@@ -432,7 +432,7 @@ static int vlc_multi_gen(VLC_MULTI_ELEM *table, const VLC *single,
     }
 
     add_level(table, is16bit, nb_codes, numbits, buf,
-              0, 0, FFMIN(maxbits, numbits), 0, minbits, max, count, info);
+              0, 0, numbits, 0, minbits, max, count, info);
 
     av_log(logctx, AV_LOG_DEBUG, "Joint: %d/%d/%d/%d/%d codes min=%ubits max=%u\n",
            count[0], count[1], count[2], count[3], count[4], minbits, max);
-- 
2.17.1



More information about the ffmpeg-devel mailing list