Commit 99bcfe62 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0fbb2713'

* commit '0fbb2713':
  qsv_api: fix building with libmfx disabled
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ac649bb7 0fbb2713
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment