summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2020-11-05 07:42:29 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-06 17:41:25 +0100
commit2e2b404a2d349def27a0436b325e5ff6769f817b (patch)
tree12aca2e19557d48afc799183e735aba268d5aa97 /libavcodec/vc1.c
parente7288a7e02b8801d4bd38836a83cf8196ea3ac9b (diff)
downloadffmpeg-2e2b404a2d349def27a0436b325e5ff6769f817b.tar.gz
avcodec/vc1: Don't check for errors for complete VLC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index cacb66b15b..9b4e951baa 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -615,7 +615,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;
}