ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@gmail.com> | 
Thu Oct 29 10:25:09 2020 +0100| [d3fba7480302ada9d75575ff6892fdbb9318f1ea] | 
committer: Andreas Rheinhardt

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.rheinha...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3fba7480302ada9d75575ff6892fdbb9318f1ea
---

 libavcodec/motionpixels.c | 2 --
 1 file changed, 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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to