summaryrefslogtreecommitdiffstats
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-17 17:20:48 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-17 17:20:48 +0000
commit44c9efcb571ee4f1ea44f658a923cd8a5923f27f (patch)
tree0ef41b9b38c6a1239fea89eec06a13690f59f079 /libavcodec/xan.c
parent110baa2e9981d392d02dd535953f5a6983a8ae6b (diff)
downloadffmpeg-streaming-44c9efcb571ee4f1ea44f658a923cd8a5923f27f.zip
ffmpeg-streaming-44c9efcb571ee4f1ea44f658a923cd8a5923f27f.tar.gz
Use memcpy instead of the very inefficient bytecopy where both are correct
(i.e. no overlap of src and dst is possible). Originally committed as revision 18569 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 65c6528..36e944f 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -148,7 +148,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
size = opcode & 3;
if (dest + size > dest_end)
return;
- bytecopy(dest, src, size); dest += size; src += size;
+ memcpy(dest, src, size); dest += size; src += size;
size = ((opcode & 0x1c) >> 2) + 3;
if (dest + size > dest_end)
@@ -164,7 +164,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
size = byte1 >> 6;
if (dest + size > dest_end)
return;
- bytecopy (dest, src, size); dest += size; src += size;
+ memcpy(dest, src, size); dest += size; src += size;
size = (opcode & 0x3f) + 4;
if (dest + size > dest_end)
@@ -181,7 +181,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
size = opcode & 3;
if (dest + size > dest_end)
return;
- bytecopy (dest, src, size); dest += size; src += size;
+ memcpy(dest, src, size); dest += size; src += size;
size = byte3 + 5 + ((opcode & 0xc) << 6);
if (dest + size > dest_end)
@@ -198,12 +198,12 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
if (dest + size > dest_end)
return;
- bytecopy (dest, src, size); dest += size; src += size;
+ memcpy(dest, src, size); dest += size; src += size;
}
}
size = opcode & 3;
- bytecopy(dest, src, size); dest += size; src += size;
+ memcpy(dest, src, size); dest += size; src += size;
}
static inline void xan_wc3_output_pixel_run(XanContext *s,
OpenPOWER on IntegriCloud