[FFmpeg-cvslog] avfilter/cuda: fix ptx inflation with large payloads

Timo Rothenpieler git at videolan.org
Fri Jun 25 03:20:58 EEST 2021


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Thu Jun 24 19:22:24 2021 +0200| [91a41a34398afd5678c20c5f5025562a41cf5bd4] | committer: Timo Rothenpieler

avfilter/cuda: fix ptx inflation with large payloads

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91a41a34398afd5678c20c5f5025562a41cf5bd4
---

 libavfilter/cuda/load_helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/cuda/load_helper.c b/libavfilter/cuda/load_helper.c
index 62d644c29a..280e596ecb 100644
--- a/libavfilter/cuda/load_helper.c
+++ b/libavfilter/cuda/load_helper.c
@@ -62,8 +62,8 @@ int ff_cuda_load_module(void *avctx, AVCUDADeviceContext *hwctx, CUmodule *cu_mo
         stream.next_out = buf + stream.total_out;
 
         ret = inflate(&stream, Z_FINISH);
-        if (ret != Z_OK && ret != Z_STREAM_END) {
-            av_log(avctx, AV_LOG_ERROR, "zlib inflate error: %s\n", stream.msg);
+        if (ret != Z_OK && ret != Z_STREAM_END && ret != Z_BUF_ERROR) {
+            av_log(avctx, AV_LOG_ERROR, "zlib inflate error(%d): %s\n", ret, stream.msg);
             inflateEnd(&stream);
             av_free(buf);
             return AVERROR(EINVAL);



More information about the ffmpeg-cvslog mailing list