aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-18 17:52:27 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-26 21:41:19 +0000
commitf69e9365f6e0c43ac78bc0b2358591c54f0448b3 (patch)
treecf10b8bce193210ca64dc9d9e43faf838435f142
parent40b75a943bcb6a4af00c44ef6e52cbfc3e6580d8 (diff)
downloadffmpeg-f69e9365f6e0c43ac78bc0b2358591c54f0448b3.tar.gz
vaapi_decode: Ignore the profile when not useful
Enables VP8 decoding - the decoder places the the bitstream version in the profile field, which we want to ignore.
-rw-r--r--libavcodec/vaapi_decode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index d36ef906a2..572b3a40ac 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -324,7 +324,8 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
int profile_match = 0;
if (avctx->codec_id != vaapi_profile_map[i].codec_id)
continue;
- if (avctx->profile == vaapi_profile_map[i].codec_profile)
+ if (avctx->profile == vaapi_profile_map[i].codec_profile ||
+ vaapi_profile_map[i].codec_profile == FF_PROFILE_UNKNOWN)
profile_match = 1;
for (j = 0; j < profile_count; j++) {
if (vaapi_profile_map[i].va_profile == profile_list[j]) {