Re: [FFmpeg-devel] [PATCH] avcodec/nvdec: Fix capability check with old drivers.

2017-12-11 Thread Timo Rothenpieler

This patch is already applied for a while now.
I'm not always near a my development system to test and push patches...



smime.p7s
Description: S/MIME Cryptographic Signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] avcodec/nvdec: Fix capability check with old drivers.

2017-12-11 Thread Carl Eugen Hoyos
2017-12-08 10:38 GMT+01:00 Timo Rothenpieler :
> lgtm, feel free to push or remind me to do so if I forget

Please push patches that you review and consider ok.

Carl Eugen
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] avcodec/nvdec: Fix capability check with old drivers.

2017-12-08 Thread Timo Rothenpieler

lgtm, feel free to push or remind me to do so if I forget



smime.p7s
Description: S/MIME Cryptographic Signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] avcodec/nvdec: Fix capability check with old drivers.

2017-12-07 Thread Jacob Trimble
On Thu, Nov 30, 2017 at 12:35 PM, Jacob Trimble  wrote:
> Copied the check from cuviddec.c (*_cuvid decoders) to allow the
> capability check to be optional for older drivers.
>
> Signed-off-by: Jacob Trimble 
> ---
>  libavcodec/nvdec.c | 12 
>  1 file changed, 12 insertions(+)
>
> diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
> index c7a02ff40f..e9e6ea0f8b 100644
> --- a/libavcodec/nvdec.c
> +++ b/libavcodec/nvdec.c
> @@ -91,6 +91,18 @@ static int nvdec_test_capabilities(NVDECDecoder *decoder,
>  caps.eChromaFormat   = params->ChromaFormat;
>  caps.nBitDepthMinus8 = params->bitDepthMinus8;
>
> +if (!decoder->cvdl->cuvidGetDecoderCaps) {
> +av_log(logctx, AV_LOG_WARNING, "Used Nvidia driver is too old to 
> perform a capability check.\n");
> +av_log(logctx, AV_LOG_WARNING, "The minimum required version is "
> +#if defined(_WIN32) || defined(__CYGWIN__)
> +"378.66"
> +#else
> +"378.13"
> +#endif
> +". Continuing blind.\n");
> +return 0;
> +}
> +
>  err = decoder->cvdl->cuvidGetDecoderCaps();
>  if (err != CUDA_SUCCESS) {
>  av_log(logctx, AV_LOG_ERROR, "Failed querying decoder 
> capabilities\n");
> --
> 2.15.0.531.g2ccb3012c9-goog
>

Ping.
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] avcodec/nvdec: Fix capability check with old drivers.

2017-11-30 Thread Jacob Trimble
Copied the check from cuviddec.c (*_cuvid decoders) to allow the
capability check to be optional for older drivers.

Signed-off-by: Jacob Trimble 
---
 libavcodec/nvdec.c | 12 
 1 file changed, 12 insertions(+)

diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index c7a02ff40f..e9e6ea0f8b 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -91,6 +91,18 @@ static int nvdec_test_capabilities(NVDECDecoder *decoder,
 caps.eChromaFormat   = params->ChromaFormat;
 caps.nBitDepthMinus8 = params->bitDepthMinus8;
 
+if (!decoder->cvdl->cuvidGetDecoderCaps) {
+av_log(logctx, AV_LOG_WARNING, "Used Nvidia driver is too old to 
perform a capability check.\n");
+av_log(logctx, AV_LOG_WARNING, "The minimum required version is "
+#if defined(_WIN32) || defined(__CYGWIN__)
+"378.66"
+#else
+"378.13"
+#endif
+". Continuing blind.\n");
+return 0;
+}
+
 err = decoder->cvdl->cuvidGetDecoderCaps();
 if (err != CUDA_SUCCESS) {
 av_log(logctx, AV_LOG_ERROR, "Failed querying decoder capabilities\n");
-- 
2.15.0.531.g2ccb3012c9-goog

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel