Browse Source

qsv_api: fix building with libmfx disabled

tags/n2.6
Anton Khirnov 10 years ago
parent
commit
0fbb271318
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      libavcodec/qsv_api.c

+ 14
- 0
libavcodec/qsv_api.c View File

@@ -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

Loading…
Cancel
Save