summaryrefslogtreecommitdiffstats
path: root/libvo/vo_fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r--libvo/vo_fbdev.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index ebedc626e5..036cb134de 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -276,14 +276,7 @@ static uint32_t draw_frame(uint8_t *src[])
in_height, in_width * (fb_bpp / 8),
in_width, in_width / 2);
} else if ((pixel_format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
- int i;
- uint8_t *dst = next_frame;
- uint8_t *s = src[0];
- for (i = 0; i < in_height; i++) {
- memcpy(dst, s, in_width * (fb_bpp / 8));
- dst += in_width * (fb_bpp / 8);
- s += in_width * (fb_bpp / 8);
- }
+ memcpy(next_frame, src[0], in_width * in_height * (fb_bpp / 8));
} else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) {
}
return 0;