summaryrefslogtreecommitdiff
path: root/libavcodec/qsv.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-27 20:33:56 +0100
committerMark Thompson <sw@jkqxz.net>2016-11-14 19:38:20 +0000
commite0b164576f7467b7b1127c18175e215dc1df011f (patch)
tree2208d895a54cf00723d7fdeedf09b5b64936084e /libavcodec/qsv.c
parent182cf170a544bce069c8690c90b49381150a1f10 (diff)
downloadffmpeg-e0b164576f7467b7b1127c18175e215dc1df011f.tar.gz
qsv: Add VP8 decoder
Diffstat (limited to 'libavcodec/qsv.c')
-rw-r--r--libavcodec/qsv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index f292082f42..45e9b7aa48 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -34,6 +34,10 @@
#include "avcodec.h"
#include "qsv_internal.h"
+#if QSV_VERSION_ATLEAST(1, 12)
+#include "mfx/mfxvp8.h"
+#endif
+
int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id)
{
switch (codec_id) {
@@ -48,6 +52,10 @@ int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id)
return MFX_CODEC_MPEG2;
case AV_CODEC_ID_VC1:
return MFX_CODEC_VC1;
+#if QSV_VERSION_ATLEAST(1, 12)
+ case AV_CODEC_ID_VP8:
+ return MFX_CODEC_VP8;
+#endif
default:
break;
}