summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-08-21 19:13:03 +0000
committerPaul B Mahol <onemda@gmail.com>2013-08-21 19:18:05 +0000
commit5c9d44d66bd47816926d9c6e6ac55b72f52e087e (patch)
treeb696121ff9574512d454c36658b85b176c8fdde4 /libavcodec
parentd5f547389b45f31ec6c54d01b9aef0989345f8f9 (diff)
downloadffmpeg-5c9d44d66bd47816926d9c6e6ac55b72f52e087e.tar.gz
qtrle: use memcpy()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qtrle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index a596cb5f44..da411f691d 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -147,8 +147,8 @@ static inline void qtrle_decode_2n4bpp(QtrleContext *s, int row_ptr,
}
CHECK_PIXEL_PTR(rle_code * num_pixels);
while (rle_code--) {
- for (i = 0; i < num_pixels; i++)
- rgb[pixel_ptr++] = pi[i];
+ memcpy(&rgb[pixel_ptr], &pi, num_pixels);
+ pixel_ptr += num_pixels;
}
} else {
/* copy the same pixel directly to output 4 times */