]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
libav: vaapi - fix compilation error for older version of libva
authorJaroslav Kysela <perex@perex.cz>
Sun, 3 Sep 2017 07:43:56 +0000 (09:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 3 Sep 2017 07:43:56 +0000 (09:43 +0200)
src/libav.c

index ae9aa218efba440642bf708765524e1e654d9f59..6531eca9e666f7f2693388bd99c4b43d27748623 100644 (file)
@@ -226,6 +226,7 @@ libav_is_encoder(AVCodec *codec)
  *
  */
 #if ENABLE_VAAPI
+#ifdef VA_FOURCC_I010
 static void libav_va_log(int severity, const char *msg)
 {
   char *s;
@@ -250,6 +251,7 @@ static void libav_va_info_callback(const char *msg)
   libav_va_log(LOG_INFO, msg);
 }
 #endif
+#endif
 
 /**
  *