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 54BFD498D3 for ; Mon, 22 Apr 2024 01:12:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F10B68D28E; Mon, 22 Apr 2024 04:12:07 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF08E68D229 for ; Mon, 22 Apr 2024 04:12:00 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 411771C0002 for ; Mon, 22 Apr 2024 01:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713748320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wVxTwrM4qiDL7LLeaqrIIo8+DLruZaFL9arv1B/PlKs=; b=L+0Pe1qNW3WDFrvsBicM1Sfkq5c3BRgqV6GN9RLzsOEb5kMjQEjxDPo2AFi1di5S5/B7iG 4UbimBz2CHzgRWHf5/b14b+cJZATDdiZTmSWGngJjfnCXYI7bADS5SHzc/LWM2SdTp3r1C eN/OchBQL/Oj11O7J2lkBIfYlOxRqKZMaWLxTOSE5eCYDcDvMH1IUAmy46WZv8TC39m3jy fn1+HxZ4ahuV97LdqPj6+oM1KSNWdwNHXli6mu3wdvr0+GnGhlXzF5UVel8vjOaCb8zXGD hAw/+865/DvegDLXkDO8+FTACvwUTg5PgxYnSmQTtRLhrqxWHlwG/E3YKMbEpA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 22 Apr 2024 03:11:59 +0200 Message-Id: <20240422011159.4180004-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avfilter/vf_thumbnail_cuda: Set ret before checking it 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: CID1418336 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_thumbnail_cuda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c index 0459070800a..8efb54f0792 100644 --- a/libavfilter/vf_thumbnail_cuda.c +++ b/libavfilter/vf_thumbnail_cuda.c @@ -291,7 +291,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) hist[i] = 4 * hist[i]; } - CHECK_CU(cu->cuCtxPopCurrent(&dummy)); + ret = CHECK_CU(cu->cuCtxPopCurrent(&dummy)); if (ret < 0) return ret; -- 2.25.1 _______________________________________________ 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".