summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2013-09-27 10:57:40 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2013-09-27 10:57:40 +0300
commiteac1d5e9fe8f295d863146c38646c4cdc8199a03 (patch)
tree9dd01a3927eac907275691640e74a9d4b429d601 /src
parent95770a9a7ae3f80c0895e40c135dc9ac36197a5d (diff)
downloadxine-lib-eac1d5e9fe8f295d863146c38646c4cdc8199a03.tar.gz
xine-lib-eac1d5e9fe8f295d863146c38646c4cdc8199a03.tar.bz2
vaapi: fix yuy2_to_nv12
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;