[FFmpeg-cvslog] r19055 - trunk/libavcodec/lcldec.c
reimar
subversion
Sun May 31 12:44:42 CEST 2009
Author: reimar
Date: Sun May 31 12:44:42 2009
New Revision: 19055
Log:
One more use for FFMIN.
Modified:
trunk/libavcodec/lcldec.c
Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c Sun May 31 12:42:26 2009 (r19054)
+++ trunk/libavcodec/lcldec.c Sun May 31 12:44:42 2009 (r19055)
@@ -102,9 +102,7 @@ static unsigned int mszh_decomp(const un
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;
}
More information about the ffmpeg-cvslog
mailing list