Lines Matching refs:destptr
79 static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsigned char * destptr, … in mszh_decomp() argument
81 unsigned char *destptr_bak = destptr; in mszh_decomp()
82 unsigned char *destptr_end = destptr + destsize; in mszh_decomp()
87 while (srcptr < srcptr_end && destptr < destptr_end) { in mszh_decomp()
89 memcpy(destptr, srcptr, 4); in mszh_decomp()
90 destptr += 4; in mszh_decomp()
96 ofs = FFMIN(ofs, destptr - destptr_bak); in mszh_decomp()
98 cnt = FFMIN(cnt, destptr_end - destptr); in mszh_decomp()
100 av_memcpy_backptr(destptr, ofs, cnt); in mszh_decomp()
104 memset(destptr, 0, cnt); in mszh_decomp()
106 destptr += cnt; in mszh_decomp()
112 if (destptr_end - destptr < 32 || srcptr_end - srcptr < 32) break; in mszh_decomp()
113 memcpy(destptr, srcptr, 32); in mszh_decomp()
114 destptr += 32; in mszh_decomp()
122 return destptr - destptr_bak; in mszh_decomp()