]> granicus.if.org Git - handbrake/commitdiff
qsv: fix building without qsv when libdrm is not present
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 9 Mar 2019 15:26:57 +0000 (08:26 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 9 Mar 2019 15:28:07 +0000 (08:28 -0700)
Fixes https://github.com/HandBrake/HandBrake/issues/1960

libhb/ports.c

index c9d2dcd114bdf60f1236a305f71c2f1401cb87c3..936587bdcc909043e83c2abccb8304a093285c35 100644 (file)
@@ -70,7 +70,9 @@
 #include <linux/cdrom.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef USE_QSV
 #include <libdrm/drm.h>
+#endif
 #elif defined( SYS_OPENBSD )
 #include <sys/dvdio.h>
 #include <fcntl.h>