summaryrefslogtreecommitdiff
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-26 09:46:25 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-29 11:22:35 +0100
commit9b45c6d74b6bcc21c3246580db3392d15a6988b8 (patch)
tree027f0b515429660ad9c261486a8894f90c26b253 /libavcodec/vp3.c
parentc72a29df6b4ec2858575bd8b6c3874784209c7b2 (diff)
avcodec/vp3: Don't check for errors for complete VLC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 51be4ebf05..c4ad43a299 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -682,11 +682,6 @@ static int vp4_get_mb_count(Vp3DecodeContext *s, GetBitContext *gb)
static int vp4_get_block_pattern(Vp3DecodeContext *s, GetBitContext *gb, int *next_block_pattern_table)
{
int v = get_vlc2(gb, s->block_pattern_vlc[*next_block_pattern_table].table, 3, 2);
- if (v == -1) {
- av_log(s->avctx, AV_LOG_ERROR, "Invalid block pattern\n");
- *next_block_pattern_table = 0;
- return 0;
- }
*next_block_pattern_table = vp4_block_pattern_table_selector[v];
return v + 1;
}