mirror of https://github.com/mpv-player/mpv
Do not use fast_memcpy when data is read again immediately afterwards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23477 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5d02058b47
commit
5bddf1de61
|
@ -115,10 +115,10 @@ static void decode_rle_tga(TGAInfo *info, unsigned char *data, mp_image_t *mpi)
|
||||||
// Note: this will be slow when DR to vram!
|
// Note: this will be slow when DR to vram!
|
||||||
i=num_bytes;
|
i=num_bytes;
|
||||||
while(2*i<=replen){
|
while(2*i<=replen){
|
||||||
fast_memcpy(final+i,final,i);
|
memcpy(final+i,final,i);
|
||||||
i*=2;
|
i*=2;
|
||||||
}
|
}
|
||||||
fast_memcpy(final+i,final,replen-i);
|
memcpy(final+i,final,replen-i);
|
||||||
data += num_bytes;
|
data += num_bytes;
|
||||||
}
|
}
|
||||||
else /* raw packet */
|
else /* raw packet */
|
||||||
|
|
Loading…
Reference in New Issue