[FFmpeg-cvslog] avcodec/qdmc: Don't check for errors for complete VLCs
Andreas Rheinhardt
git at videolan.org
Tue Nov 24 12:49:26 EET 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Nov 8 10:15:31 2020 +0100| [b81e6437ca1bb9e637b98ea862fbcd17ef2a065a] | committer: Andreas Rheinhardt
avcodec/qdmc: Don't check for errors for complete VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b81e6437ca1bb9e637b98ea862fbcd17ef2a065a
---
libavcodec/qdmc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/qdmc.c b/libavcodec/qdmc.c
index ff1cc86c6b..f4e507fa60 100644
--- a/libavcodec/qdmc.c
+++ b/libavcodec/qdmc.c
@@ -370,8 +370,6 @@ static int qdmc_get_vlc(GetBitContext *gb, VLC *table, int flag)
if (get_bits_left(gb) < 1)
return AVERROR_INVALIDDATA;
v = get_vlc2(gb, table->table, table->bits, 2);
- if (v < 0)
- return AVERROR_INVALIDDATA;
if (v)
v = v - 1;
else
More information about the ffmpeg-cvslog
mailing list