]> git.sesse.net Git - ffmpeg/commitdiff
vaapi_decode: Ignore the profile when not useful
authorMark Thompson <sw@jkqxz.net>
Sat, 18 Nov 2017 17:52:27 +0000 (17:52 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 26 Nov 2017 21:41:19 +0000 (21:41 +0000)
Enables VP8 decoding - the decoder places the the bitstream version
in the profile field, which we want to ignore.

libavcodec/vaapi_decode.c

index d36ef906a202d04203d92f8a6ee55bf6c9d40f84..572b3a40ac0546935dfb43039016a9929b363512 100644 (file)
@@ -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]) {