[vlc-devel] [PATCH] directxva: allow decoding FF_PROFILE_H264_BASELINE without constraint

Rémi Denis-Courmont remi at remlab.net
Mon Jan 30 17:58:26 CET 2017


Le maanantaina 30. tammikuuta 2017, 10.02.41 EET Steve Lhomme a écrit :
> It works

No, it does not. Unconstrained Baseline requires stuff that no GPU supports. 
That is to say basically anything that is in Baseline and not in Main.

> ---
>  modules/codec/avcodec/directx_va.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/codec/avcodec/directx_va.c
> b/modules/codec/avcodec/directx_va.c index 1c26edc..d3073f7 100644
> --- a/modules/codec/avcodec/directx_va.c
> +++ b/modules/codec/avcodec/directx_va.c
> @@ -45,7 +45,8 @@
>  static const int PROF_MPEG2_SIMPLE[] = { FF_PROFILE_MPEG2_SIMPLE, 0 };
>  static const int PROF_MPEG2_MAIN[]   = { FF_PROFILE_MPEG2_SIMPLE,
>                                           FF_PROFILE_MPEG2_MAIN, 0 };
> -static const int PROF_H264_HIGH[]    = {
> FF_PROFILE_H264_CONSTRAINED_BASELINE, +static const int PROF_H264_HIGH[]   
> = { FF_PROFILE_H264_BASELINE, +                                        
> FF_PROFILE_H264_CONSTRAINED_BASELINE, FF_PROFILE_H264_MAIN,
>                                           FF_PROFILE_H264_HIGH, 0 };
>  static const int PROF_HEVC_MAIN[]    = { FF_PROFILE_HEVC_MAIN, 0 };


-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list