You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/cuda: fix ptx inflation with large payloads
This commit is contained in:
@@ -62,8 +62,8 @@ int ff_cuda_load_module(void *avctx, AVCUDADeviceContext *hwctx, CUmodule *cu_mo
|
|||||||
stream.next_out = buf + stream.total_out;
|
stream.next_out = buf + stream.total_out;
|
||||||
|
|
||||||
ret = inflate(&stream, Z_FINISH);
|
ret = inflate(&stream, Z_FINISH);
|
||||||
if (ret != Z_OK && ret != Z_STREAM_END) {
|
if (ret != Z_OK && ret != Z_STREAM_END && ret != Z_BUF_ERROR) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "zlib inflate error: %s\n", stream.msg);
|
av_log(avctx, AV_LOG_ERROR, "zlib inflate error(%d): %s\n", ret, stream.msg);
|
||||||
inflateEnd(&stream);
|
inflateEnd(&stream);
|
||||||
av_free(buf);
|
av_free(buf);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
|
Reference in New Issue
Block a user