You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +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; | ||||
|  | ||||
|         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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user