Skip to content
Snippets Groups Projects
Commit e4f141ad authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

One more use for FFMIN.

Originally committed as revision 19055 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0d48e6ec
No related branches found
No related tags found
No related merge requests found
...@@ -102,9 +102,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign ...@@ -102,9 +102,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign
cnt = (ofs >> 11) + 1; cnt = (ofs >> 11) + 1;
ofs &= 0x7ff; ofs &= 0x7ff;
cnt *= 4; cnt *= 4;
if (destptr_end - destptr < cnt) { cnt = FFMIN(cnt, destptr_end - destptr);
cnt = destptr_end - destptr;
}
av_memcpy_backptr(destptr, ofs, cnt); av_memcpy_backptr(destptr, ofs, cnt);
destptr += cnt; destptr += cnt;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment