summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_vaapi.c4
1 files changed, 2 insertions, 2 deletions
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;