mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/magicyuv: remove redundant check in inner loop
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4ddf4f5001
commit
a23d527ec5
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user