[FFmpeg-devel] [PATCH v2 105/162] avcodec/vc1: Don't check for errors for complete VLC

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Nov 20 09:32:30 EET 2020


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/vc1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 84617913ba..23a0743813 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -614,7 +614,7 @@ static void rotate_luts(VC1Context *v)
 static int read_bfraction(VC1Context *v, GetBitContext* gb) {
     int bfraction_lut_index = get_vlc2(gb, ff_vc1_bfraction_vlc.table, VC1_BFRACTION_VLC_BITS, 1);
 
-    if (bfraction_lut_index == 21 || bfraction_lut_index < 0) {
+    if (bfraction_lut_index == 21) {
         av_log(v->s.avctx, AV_LOG_ERROR, "bfraction invalid\n");
         return AVERROR_INVALIDDATA;
     }
-- 
2.25.1



More information about the ffmpeg-devel mailing list