Commit ce4abeae authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libva-enabled avcodec needs X11

(cherry picked from commit b4bf94e06761276859f4a1f36c303269fb7035fd)
parent ada6a525
......@@ -2697,8 +2697,8 @@ AS_IF([test "${enable_libva}" != "no"], [
CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
AC_CHECK_HEADERS(libavcodec/vaapi.h, [
VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS])
VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS])
VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS ${X_LIBS} ${X_PRE_LIBS} -lX11])
VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS ${X_CFLAGS}])
AC_DEFINE(HAVE_AVCODEC_VAAPI, 1, [Define if avcodec has to be built with VAAPI support.])
echo "VAAPI acceleration activated"
],[
......
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