diff options
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r-- | libavcodec/lcldec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 927f77b30b..5225ff0552 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -102,9 +102,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign cnt = (ofs >> 11) + 1; ofs &= 0x7ff; cnt *= 4; - if (destptr_end - destptr < cnt) { - cnt = destptr_end - destptr; - } + cnt = FFMIN(cnt, destptr_end - destptr); av_memcpy_backptr(destptr, ofs, cnt); destptr += cnt; } |