diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-24 19:22:24 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-24 20:58:47 +0200 |
commit | 91a41a34398afd5678c20c5f5025562a41cf5bd4 (patch) | |
tree | 129801d92f72f9776a824c8198c7b65951fb74d8 /libavfilter/cuda | |
parent | aca923b3653a7db5fd9fa3dca029936feb152aa2 (diff) | |
download | ffmpeg-91a41a34398afd5678c20c5f5025562a41cf5bd4.tar.gz |
avfilter/cuda: fix ptx inflation with large payloads
Diffstat (limited to 'libavfilter/cuda')
-rw-r--r-- | libavfilter/cuda/load_helper.c | 4 |
1 files 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); |