[vlc-devel] [PATCH] vaapi: use ffmpeg context to read the codec profile

Francois Cartegnie fcvlcdev at free.fr
Thu Dec 28 17:23:42 CET 2017

Le 26/12/2017 à 15:21, Mathieu Velten a écrit :
> Sometimes the profile is not available in the container metadatas (WebM).

Sorry but profile is always available for HEVC.

>      case AV_CODEC_ID_HEVC:
> -        if (fmt->i_profile == FF_PROFILE_HEVC_MAIN)
> +        if (ctx->profile == FF_PROFILE_HEVC_MAIN)
>              i_profile = VAProfileHEVCMain;
I haven't looking into it, but
if we really have a mix of FF_PROFILE defines and core es_format profile
values in that code, that might be your real issue.

Francois Cartegnie
VideoLAN - VLC Developer

More information about the vlc-devel mailing list