]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[core] fix "--disable-libyuv" 1419/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Mon, 1 Nov 2021 08:59:09 +0000 (09:59 +0100)
committerAndrey Volk <andywolk@gmail.com>
Mon, 1 Nov 2021 16:35:53 +0000 (19:35 +0300)
commita2ce46c6fde38d6ac54a8a2ee1a5b391e2ed2071
tree02cd33111fb0e15258f0f1b67e4b0ce583705794
parent9f26a15220b8b8b09c4debe41fe395d25d4cfeec
[core] fix "--disable-libyuv"

Recent changes made it impossible to compile freeswitch without libyuv
support.

src/switch_core_video.c: In function 'switch_img_read_from_file':
src/switch_core_video.c:3139:4: error: implicit declaration of function 'RAWToI420' [-Werror=implicit-function-declaration]
RAWToI420(data, width * 3,
^
src/switch_core_video.c:3148:4: error: implicit declaration of function 'ABGRToARGB' [-Werror=implicit-function-declaration]
ABGRToARGB(data, width * 4, img->planes[SWITCH_PLANE_PACKED], img->stride[SWITCH_PLANE_PACKED], width, height);
^

Fix this my adding/moving the checks for "SWITCH_HAVE_YUV".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/switch_core_video.c
tests/unit/switch_core_video.c