mirror of https://git.ffmpeg.org/ffmpeg.git
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.
This commit is contained in:
parent
40b75a943b
commit
f69e9365f6
|
@ -324,7 +324,8 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
|
||||||
int profile_match = 0;
|
int profile_match = 0;
|
||||||
if (avctx->codec_id != vaapi_profile_map[i].codec_id)
|
if (avctx->codec_id != vaapi_profile_map[i].codec_id)
|
||||||
continue;
|
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_match = 1;
|
||||||
for (j = 0; j < profile_count; j++) {
|
for (j = 0; j < profile_count; j++) {
|
||||||
if (vaapi_profile_map[i].va_profile == profile_list[j]) {
|
if (vaapi_profile_map[i].va_profile == profile_list[j]) {
|
||||||
|
|
Loading…
Reference in New Issue