[vlc-devel] [PATCH] DXVA2: don't use the decoder if the profile is not supported

Jean-Baptiste Kempf jb at videolan.org
Tue Apr 21 18:15:05 CEST 2015


Le 21/04/2015 13:11, Steve Lhomme a écrit :
> +    { "H.264 variable-length decoder, film grain technology",                         &DXVA2_ModeH264_F,                      AV_CODEC_ID_H264, FF_PROFILE_H264_HIGH },

If you could use the defines from h264_nal.h, that'd be nice.
I would rather that you use a mask of supported profiles.

> +static bool profile_supported(const dxva2_mode_t *mode, int i_src_profile)
> +{

And that should simplify that one function.

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list