diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-10-22 17:09:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-10-27 18:10:46 +0200 |
commit | a23d527ec5d550664fd595d22e6241c7b709fc96 (patch) | |
tree | 6deae5b547d6187d9e4a431f9af887d61f26c317 /libavcodec/magicyuv.c | |
parent | 4ddf4f5001ca6fd3525e4acb62c19627fdb76f8e (diff) | |
download | ffmpeg-a23d527ec5d550664fd595d22e6241c7b709fc96.tar.gz |
avcodec/magicyuv: remove redundant check in inner loop
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/magicyuv.c')
-rw-r--r-- | libavcodec/magicyuv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index d813f20920..3f6348b531 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -125,10 +125,9 @@ static void magicyuv_median_pred16(uint16_t *dst, const uint16_t *src1, for (; CACHED_BITSTREAM_READER && x < width-c && get_bits_left(&gb) > 0;) {\ ret = get_vlc_multi(&gb, (uint8_t *)dst + x * b, multi, \ vlc, vlc_bits, 3); \ - if (ret > 0) \ - x += ret; \ if (ret <= 0) \ return AVERROR_INVALIDDATA; \ + x += ret; \ } \ for (; x < width && get_bits_left(&gb) > 0; x++) \ dst[x] = get_vlc2(&gb, vlc, vlc_bits, 3); \ |