diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-04-11 15:32:30 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-04-11 15:32:30 +0300 |
commit | 0cf728f7925e44eb8bac5d217b3683b25a4557aa (patch) | |
tree | 32a0e74753d58c290f6307bbc6f139755cea73da | |
parent | 744a690374aa30bd93f687e9ca093175ddb65f48 (diff) | |
download | xine-lib-0cf728f7925e44eb8bac5d217b3683b25a4557aa.tar.gz xine-lib-0cf728f7925e44eb8bac5d217b3683b25a4557aa.tar.bz2 |
Marked data const and fixed type
-rw-r--r-- | src/xine-utils/color.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-utils/color.c b/src/xine-utils/color.c index 47bae38f5..67e720b4d 100644 --- a/src/xine-utils/color.c +++ b/src/xine-utils/color.c @@ -319,12 +319,12 @@ static void yuv444_to_yuy2_mmx(const yuv_planes_t *yuv_planes, unsigned char *yu int width_mod_8 = yuv_planes->row_width % 8; unsigned char *source_plane; unsigned char *dest_plane; - unsigned char filter[] = { + static const mmx_t filter = {ub: { 0x01, 0x00, 0x03, 0x00, 0x03, 0x00, 0x01, 0x00 - }; + }}; unsigned char shifter[] = {0, 0, 0, 0, 0, 0, 0, 0}; unsigned char vector[8]; int block_loops = yuv_planes->row_width / 6; @@ -344,7 +344,7 @@ static void yuv444_to_yuy2_mmx(const yuv_planes_t *yuv_planes, unsigned char *yu /* set up some MMX registers: * mm0 = 0, mm7 = color filter */ pxor_r2r(mm0, mm0); - movq_m2r(*filter, mm7); + movq_m2r(filter, mm7); /* copy the Y samples */ source_plane = yuv_planes->y; |