[vlc-devel] [PATCH] nvdec: set a higher priority than libavcodec

Jean-Baptiste Kempf jb at videolan.org
Tue Mar 17 17:02:10 CET 2020


What do other hw decoder do in terms of priority?

Also, why is avcodec not the 100 prio?

On Tue, Mar 17, 2020, at 11:38, Steve Lhomme wrote:
> We can detect early if the stream will be usable or not without loading any
> resources. If the codec is not handled or the decoder device picked by the user
> or system doesn't match we will fallback to the next decoder (likely lavc).
> ---
>  modules/hw/nvdec/nvdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
> index ba6b0514542..81c5e8c2f47 100644
> --- a/modules/hw/nvdec/nvdec.c
> +++ b/modules/hw/nvdec/nvdec.c
> @@ -58,7 +58,7 @@ static const int ppsi_deinterlace_type[] = {
>  vlc_module_begin ()
>      set_description(N_("NVDEC video decoder"))
>      set_shortname("nvdec")
> -    set_capability("video decoder", 60)
> +    set_capability("video decoder", 80)
>      set_category(CAT_INPUT)
>      set_subcategory(SUBCAT_INPUT_VCODEC)
>      add_integer( "nvdec-deint", cudaVideoDeinterlaceMode_Bob,
> -- 
> 2.17.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list