[FFmpeg-devel] [PATCH 8/9] Revert "avcodec/vlc: fix off by one in limit check for multi"
Michael Niedermayer
michael at niedermayer.cc
Mon Oct 23 00:51:12 EEST 2023
This with the last revert results in a table with additional entries
This reverts commit b23eaf968e375f2d38865d90a788221caead3324.
---
libavcodec/vlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vlc.c b/libavcodec/vlc.c
index 79544006677..ceabeba5408 100644
--- a/libavcodec/vlc.c
+++ b/libavcodec/vlc.c
@@ -365,7 +365,7 @@ static void add_level(VLC_MULTI_ELEM *table, const int is16bit,
uint32_t code;
sym = buf[i].symbol;
- if (l >= curlimit)
+ if (l > curlimit)
return;
code = curcode + (buf[i].code >> curlen);
newlimit = curlimit - l;
--
2.17.1
More information about the ffmpeg-devel
mailing list