diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-02-19 19:35:34 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-02-19 19:35:34 +0300 |
commit | 0fbb271318899a0fb1fbcbb3db8292e909b91e23 (patch) | |
tree | 37e7d77c1829fbf0277a3f3659ee6693c4946a9b | |
parent | 11c22dfd495bbd3f38df639772aa4bb9a1be882d (diff) |
qsv_api: fix building with libmfx disabled
-rw-r--r-- | libavcodec/qsv_api.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/qsv_api.c b/libavcodec/qsv_api.c index 8fde4942a5..234b5961e3 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 |