From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 849AE44D8E for ; Tue, 22 Nov 2022 13:21:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9F6B668B9FF; Tue, 22 Nov 2022 15:21:33 +0200 (EET) Received: from btbn.de (btbn.de [136.243.74.85]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82AD468B1A1 for ; Tue, 22 Nov 2022 15:21:26 +0200 (EET) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 1616A36743E for ; Tue, 22 Nov 2022 14:21:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1669123286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E97z/gTT5Wsv9F0CU8fAukV9B2kSiQYM4oYVWlJNX1U=; b=mwp+IlNyt/9u13nxNItd/1ijFnPv6nwWzqqLvMyHOo2KMxN8yJOv12irlCbBDi5EzLv3UZ Rzv3VTf59Aq4V9vuOX6/O8fRhRXKpIhpw853XuOsNRVZebRoHLE2nrofhcWeLlZA235jDf SeOfEW5xV0RIE6jEqYmHiPE7RY3YffvyTNFSvtFI6gE1trVZi0e6Yf3RAr1jBSr0JUkQW9 6R08sP1NKuW7xHsIxA/6zf3MGuaHpji1D8UkcsK5GvEapYdHYeJgsk+4rZ43tDCXnfuDlt wXOQ4KsQ2MqLjQ49jPMrS+xnfg2Cd61ZxQQxFuzt7jIjoZ1nHfAm06y2/DBP2A== Message-ID: <23e2a4bb-c527-565c-8ec5-dcd3d4753c02@rothenpieler.org> Date: Tue, 22 Nov 2022 14:21:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 To: ffmpeg-devel@ffmpeg.org References: <20221122130732.403-1-jamrial@gmail.com> <20221122130732.403-3-jamrial@gmail.com> Content-Language: en-US From: Timo Rothenpieler In-Reply-To: <20221122130732.403-3-jamrial@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH 3/4] avutil/cuda_check: propagate AVERROR_UNRECOVERABLE when needed X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 22/11/2022 14:07, James Almer wrote: > Based on a patch by Soft Works. > > Signed-off-by: James Almer > --- > libavutil/cuda_check.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libavutil/cuda_check.h b/libavutil/cuda_check.h > index f5a9234eaf..33aaf9c098 100644 > --- a/libavutil/cuda_check.h > +++ b/libavutil/cuda_check.h > @@ -49,6 +49,10 @@ static inline int ff_cuda_check(void *avctx, > av_log(avctx, AV_LOG_ERROR, " -> %s: %s", err_name, err_string); > av_log(avctx, AV_LOG_ERROR, "\n"); > > + // Not recoverable > + if (err == CUDA_ERROR_UNKNOWN) > + return AVERROR_UNRECOVERABLE; Why does specifically CUDA_ERROR_UNKNOWN get mapped to unrecoverable? > return AVERROR_EXTERNAL; > } > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".