On 6/9/17 4:27 PM, wm4 wrote:
> Make supported codec profiles part of each dxva_modes entry. Every DXVA2
> mode is representative for a codec with a subset of supported profiles,
> so reflecting that in dxva_modes seems appropriate.
> 
> In practice, this will more strictly check MPEG2 profiles, will stop
> relying on the surface format checks for selecting the correct HEVC
> profile, and remove the verbose messages for mismatching H264/HEVC
> profiles. Instead of the latter, it will now print the more nebulous "No
> decoder device for codec found" verbose message.
> 
> This also respects AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH. Move the
> Main10 HEVC entry before the normal one to make this work better.
> 
> Originally inspired by VLC's code.
> ---
>  libavcodec/dxva2.c | 64 
> +++++++++++++++++++++++++++++++++++++-----------------
>  1 file changed, 44 insertions(+), 20 deletions(-)
> 

Seems good.

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to