utils: only enable VP8 profiles for newer VA-API versions.

VP8 decoding API appeared in VA-API >= 0.35.0. So, disable mappings
involving VP8 codec on earlier versions of the API.
This commit is contained in:
Gwenole Beauchesne 2014-06-02 16:25:03 +02:00
parent f0d3d9cd3c
commit 800bfc1add
2 changed files with 5 additions and 0 deletions

View file

@ -126,8 +126,10 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = {
"image/jpeg", "baseline"
},
#endif
#if VA_CHECK_VERSION(0,35,0)
{GST_VAAPI_PROFILE_VP8, VAProfileVP8Version0_3,
"video/x-vp8", "Version0_3"},
#endif
{ 0, }
};

View file

@ -145,6 +145,9 @@ string_of_VAProfile (VAProfile profile)
MAP (VC1Simple);
MAP (VC1Main);
MAP (VC1Advanced);
#if VA_CHECK_VERSION(0,35,0)
MAP (VP8Version0_3);
#endif
#undef MAP
default:
break;