[vlc-devel] [PATCH] nvdec: set a higher priority than libavcodec
Steve Lhomme
robux4 at ycbcr.xyz
Tue Mar 17 11:38:15 CET 2020
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
More information about the vlc-devel
mailing list