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 + #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