From eac1d5e9fe8f295d863146c38646c4cdc8199a03 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Fri, 27 Sep 2013 10:57:40 +0300 Subject: vaapi: fix yuy2_to_nv12 --- src/video_out/video_out_vaapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_vaapi.c b/src/video_out/video_out_vaapi.c index 6f0b5c1b8..a9025f4b6 100644 --- a/src/video_out/video_out_vaapi.c +++ b/src/video_out/video_out_vaapi.c @@ -3071,8 +3071,8 @@ static void yuy2_to_nv12(const uint8_t *src_yuy2_map, int yuy2_pitch, uint8_t *uv_dst_tmp = uv_dst; for(y = 0; y < height; y++) { for(x = 0; x < width; x++) { - *(uv_dst_tmp + (height*width/4) ) = (yuy2_map + (height*width/2)); - *(uv_dst_tmp + (height*width/4) + 2 ) = (yuy2_map + (height*width/2) + 2); + *(uv_dst_tmp + (height*width/4) ) = *(yuy2_map + (height*width/2)); + *(uv_dst_tmp + (height*width/4) + 2 ) = *(yuy2_map + (height*width/2) + 2); } uv_dst += uv_dst_pitch / 2; yuy2_map += yuy2_pitch; -- cgit v1.2.3