summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_decode.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-09-04 13:33:15 +0100
committerMark Thompson <sw@jkqxz.net>2016-09-08 21:58:22 +0100
commit11c191b52ce0768370e38a2726132f9223e701f6 (patch)
tree8b0d2edd30cd5a1c2b8d398f0e4bb5d8b4770cc2 /libavcodec/vaapi_decode.c
parenta9fb134730da1f9642eb5a2baa50943b8a4aa245 (diff)
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.
Diffstat (limited to 'libavcodec/vaapi_decode.c')
-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 51b6d47a66..ab8445afc0 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -320,7 +320,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;
profile = vaapi_profile_map[i].va_profile;
for (j = 0; j < profile_count; j++) {