Commit 7388f74a authored by reimar's avatar reimar

Use memcpy instead of per-pixel copy loop for rgb lcl format


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18997 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4889839f
......@@ -432,12 +432,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
case IMGTYPE_RGB24:
for (row = height - 1; row >= 0; row--) {
pixel_ptr = row * c->pic.linesize[0];
for (col = 0; col < width; col++) {
outptr[pixel_ptr++] = encoded[0];
outptr[pixel_ptr++] = encoded[1];
outptr[pixel_ptr++] = encoded[2];
encoded += 3;
}
memcpy(outptr + pixel_ptr, encoded, 3 * width);
encoded += 3 * width;
}
break;
case IMGTYPE_YUV411:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment