Browse Source

One more use for FFMIN.

Originally committed as revision 19055 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Reimar Döffinger 17 years ago
parent
commit
e4f141ad60
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/lcldec.c

+ 1
- 3
libavcodec/lcldec.c View File

@@ -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;
}


Loading…
Cancel
Save