Commit 84272386 authored by reimar's avatar reimar

One more use for FFMIN.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19055 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d32e7075
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment