diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-29 10:25:09 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-24 11:35:03 +0100 |
commit | d3fba7480302ada9d75575ff6892fdbb9318f1ea (patch) | |
tree | 8ed159c651afdc2a868f64cf875e438405f117db | |
parent | 3d95b1a8285240f150853d4a823bc225fd3f6544 (diff) | |
download | ffmpeg-d3fba7480302ada9d75575ff6892fdbb9318f1ea.tar.gz |
avcodec/motionpixels: Don't check for errors for complete VLC
The algorithm used here always creates a complete VLC, so it is
unnecessary to check this again.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavcodec/motionpixels.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c index 4b9830fbed..a65250efe5 100644 --- a/libavcodec/motionpixels.c +++ b/libavcodec/motionpixels.c @@ -195,8 +195,6 @@ static av_always_inline int mp_get_vlc(MotionPixelsContext *mp, GetBitContext *g int i; i = (mp->codes_count == 1) ? 0 : get_vlc2(gb, mp->vlc.table, mp->max_codes_bits, 1); - if (i < 0) - return i; return mp->codes[i].delta; } |