Skip to content

Commit

Permalink
qsv_api: fix building with libmfx disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
elenril committed Feb 19, 2015
1 parent 11c22df commit 0fbb271
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libavcodec/qsv_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0fbb271

Please sign in to comment.