From f0a0024aebafcca8efc215f41ef86e782af586a2 Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Thu, 29 Sep 2016 07:52:46 +0200 Subject: [PATCH] Fix compile issue for Amlogic video decoder backend --- src/video/aml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/aml.c b/src/video/aml.c index be67e83..7925c9c 100644 --- a/src/video/aml.c +++ b/src/video/aml.c @@ -77,7 +77,7 @@ void aml_setup(int videoFormat, int width, int height, int redrawRate, void* con uname(&name); int ret = sscanf(name.release, "%d.%d", &major, &minor); if (!(major > 3 || (major == 3 && minor >= 14)) && width == 1920 && height == 1080) - codecParam.am_sysinfo.param = UCODE_IP_ONLY_PARAM; + codecParam.am_sysinfo.param = (void*) UCODE_IP_ONLY_PARAM; } break; case VIDEO_FORMAT_H265: @@ -92,7 +92,7 @@ void aml_setup(int videoFormat, int width, int height, int redrawRate, void* con codecParam.am_sysinfo.width = width; codecParam.am_sysinfo.height = height; codecParam.am_sysinfo.rate = 96000 / redrawRate; - codecParam.am_sysinfo.param |= SYNC_OUTSIDE; + codecParam.am_sysinfo.param = (void*) ((size_t) codecParam.am_sysinfo.param | SYNC_OUTSIDE); int api = codec_init(&codecParam); if (api != 0) {