Commit 582552fb authored by Luca Barbato's avatar Luca Barbato Committed by Michael Niedermayer

postproc/yuv2rgb_altivec.c compile fix

yuv2rgb_altivec_init_tables does initialize the SwsContext vectors.
missing vec_splat.
patch by (Luca Barbato <lu_zero at gentoo dot org>) and (Romain Dolbeau <dolbeau at irisa dot fr>)

Originally committed as revision 13565 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent 69339009
...@@ -1724,7 +1724,7 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange ...@@ -1724,7 +1724,7 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange
//FIXME factorize //FIXME factorize
#ifdef HAVE_ALTIVEC #ifdef HAVE_ALTIVEC
yuv2rgb_altivec_init_tables (c, inv_table); yuv2rgb_altivec_init_tables (c, inv_table, brightness, contrast, saturation);
#endif #endif
return 0; return 0;
} }
......
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
#include <altivec.h> #include <altivec.h>
#endif #endif
#ifdef CONFIG_DARWIN
#define AVV(x...) (x)
#else
#define AVV(x...) {x}
#endif
#include "../mp_msg.h" #include "../mp_msg.h"
#define MSG_WARN(args...) mp_msg(MSGT_SWS,MSGL_WARN, ##args ) #define MSG_WARN(args...) mp_msg(MSGT_SWS,MSGL_WARN, ##args )
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment