Module: libav
Branch: master
Commit: 0fbb271318899a0fb1fbcbb3db8292e909b91e23

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Thu Feb 19 17:35:34 2015 +0100

qsv_api: fix building with libmfx disabled

---

 libavcodec/qsv_api.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libavcodec/qsv_api.c b/libavcodec/qsv_api.c
index 8fde494..234b596 100644
--- a/libavcodec/qsv_api.c
+++ b/libavcodec/qsv_api.c
@@ -18,11 +18,25 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "config.h"
+
+#include <stddef.h>
+
 #include "libavutil/mem.h"
 
+#if CONFIG_QSV
 #include "qsv.h"
 
 AVQSVContext *av_qsv_alloc_context(void)
 {
     return av_mallocz(sizeof(AVQSVContext));
 }
+#else
+
+struct AVQSVContext *av_qsv_alloc_context(void);
+
+struct AVQSVContext *av_qsv_alloc_context(void)
+{
+    return NULL;
+}
+#endif

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to