[vlc-devel] [PATCH] directx_va: conditionnally declare workarounded profile

Steve Lhomme robux4 at ycbcr.xyz
Wed Mar 25 14:36:59 CET 2020


LGTM

On 2020-03-25 14:30, Alexandre Janniaux wrote:
> The profile is not used if the define doesn't exist.
> ---
>   modules/codec/avcodec/directx_va.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
> index 5f5da23b7f..859ddb22b3 100644
> --- a/modules/codec/avcodec/directx_va.c
> +++ b/modules/codec/avcodec/directx_va.c
> @@ -59,8 +59,11 @@ static const int PROF_HEVC_MAIN[]    = { FF_PROFILE_HEVC_MAIN,
>   static const int PROF_HEVC_MAIN10[]  = { FF_PROFILE_HEVC_MAIN,
>                                            FF_PROFILE_HEVC_MAIN_10,
>                                            FF_PROFILE_UNKNOWN };
> +
> +#ifdef FF_DXVA2_WORKAROUND_HEVC_REXT
>   static const int PROF_HEVC_MAIN_REXT[]  = { FF_PROFILE_HEVC_REXT,
>                                               FF_PROFILE_UNKNOWN };
> +#endif
>   
>   static const int PROF_VP9_MAIN[]    = { FF_PROFILE_VP9_0, FF_PROFILE_UNKNOWN };
>   static const int PROF_VP9_10[]      = { FF_PROFILE_VP9_2, FF_PROFILE_UNKNOWN };
> -- 
> 2.26.0
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list