summaryrefslogtreecommitdiff
path: root/pjmedia/src/pjmedia/converter_libyuv.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjmedia/src/pjmedia/converter_libyuv.c')
-rw-r--r--pjmedia/src/pjmedia/converter_libyuv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pjmedia/src/pjmedia/converter_libyuv.c b/pjmedia/src/pjmedia/converter_libyuv.c
index 52435d1b..62693fd1 100644
--- a/pjmedia/src/pjmedia/converter_libyuv.c
+++ b/pjmedia/src/pjmedia/converter_libyuv.c
@@ -145,17 +145,17 @@ typedef struct fmt_convert_map {
#define GET_PJ_FORMAT(fmt) PJMEDIA_FORMAT_##fmt
#define MAP_CONV_PACK_TO_PACK(src,dst,method) GET_PJ_FORMAT(src),\
- GET_PJ_FORMAT(dst),CONV_PACK_TO_PACK,method
+ GET_PJ_FORMAT(dst),CONV_PACK_TO_PACK,(gen_conv_func)&method
#define MAP_CONV_PACK_TO_PLANAR(src,dst,method) GET_PJ_FORMAT(src),\
- GET_PJ_FORMAT(dst),CONV_PACK_TO_PLANAR,method
+ GET_PJ_FORMAT(dst),CONV_PACK_TO_PLANAR,(gen_conv_func)&method
#define MAP_CONV_PLANAR_TO_PACK(src,dst,method) GET_PJ_FORMAT(src),\
- GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PACK,method
+ GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PACK,(gen_conv_func)&method
#define MAP_CONV_PLANAR_TO_PLANAR(src,dst,method) GET_PJ_FORMAT(src),\
- GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PLANAR,method
+ GET_PJ_FORMAT(dst),CONV_PLANAR_TO_PLANAR,(gen_conv_func)&method
#define MAP_SCALE_PACK(fmt,method) GET_PJ_FORMAT(fmt),\
- GET_PJ_FORMAT(fmt),SCALE_PACK,method
+ GET_PJ_FORMAT(fmt),SCALE_PACK,(gen_conv_func)&method
#define MAP_SCALE_PLANAR(fmt,method) GET_PJ_FORMAT(fmt),\
- GET_PJ_FORMAT(fmt),SCALE_PLANAR,method
+ GET_PJ_FORMAT(fmt),SCALE_PLANAR,(gen_conv_func)&method
static fmt_convert_map conv_to_i420[] =
{