Browse Source

qtrle: use memcpy()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.1
Paul B Mahol 12 years ago
parent
commit
5c9d44d66b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/qtrle.c

+ 2
- 2
libavcodec/qtrle.c View File

@@ -147,8 +147,8 @@ static inline void qtrle_decode_2n4bpp(QtrleContext *s, int row_ptr,
} }
CHECK_PIXEL_PTR(rle_code * num_pixels); CHECK_PIXEL_PTR(rle_code * num_pixels);
while (rle_code--) { 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 { } else {
/* copy the same pixel directly to output 4 times */ /* copy the same pixel directly to output 4 times */


Loading…
Cancel
Save