Skip to content
Snippets Groups Projects
Commit 37f14665 authored by Jean-Paul Saman's avatar Jean-Paul Saman
Browse files

Fix detection of libswscale. It depends on libavutil.

parent c13d2637
No related branches found
No related tags found
No related merge requests found
......@@ -3086,10 +3086,11 @@ dnl Trying with pkg-config
fi
VLC_ADD_CFLAGS([ffmpeg stream_out_switcher],[${FFMPEG_CFLAGS}])
VLC_ADD_LIBS([ffmpeg stream_out_switcher],[${FFMPEG_LIBS}])
dnl even newer ffmpeg has a libswscale
PKG_CHECK_MODULES(SWSCALE, libswscale,[
VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}])
VLC_ADD_LIBS([ffmpeg],[${SWSCALE_LIBS}])
PKG_CHECK_MODULES(SWSCALE, libavutil, libswscale,[
VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}])
VLC_ADD_LIBS([ffmpeg],[${SWSCALE_LIBS}])
AC_CHECK_LIB(swscale, sws_getContext,
[AC_CHECK_HEADERS(ffmpeg/swscale.h)],[])
],[ true ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment