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 69D214A904 for ; Wed, 24 Apr 2024 01:45:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 63DA368D3C9; Wed, 24 Apr 2024 04:45:32 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0A2C668D2AF for ; Wed, 24 Apr 2024 04:45:24 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 64B3D1BF203 for ; Wed, 24 Apr 2024 01:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713923124; 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: in-reply-to:in-reply-to:references:references; bh=NRAih5cLbq4712otlsfe2xANFgmlMmOLV8knehv5gag=; b=Fa6izMMSGJLi/Fp7j46Cj5j7K4XYeNINtJTBRlTs4Lj+yGrPBW5zUyYQpDJ0Azdlz+x/FI poCnlKgRcfHKtkLcCxIhBN70VpFL7TUjPQO/Y8h5F46PE59Qey+4E1GSZiKh2uI1fgD22S 3Nk0i47btixFYzXvfRo6//znUunKZXgOhPokl6iTOP09ngoxgw34/A6ee0u2B6cMQjMfpe EPA0QFsAInFyhpn+u2EczxkEyT0RFdoDmDeYX/jqg7jKFDC+Jtzvm6pxhDwqXmnWoxRwS4 FnaX7oD4oi/EW9KK7/i0N2WBZ6YAjG9DpAoxVcEScfEFrPanZpJg2ZOb08dFpA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 24 Apr 2024 03:45:19 +0200 Message-ID: <20240424014522.4015429-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240424014522.4015429-1-michael@niedermayer.cc> References: <20240424014522.4015429-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/5] doc/examples/qsv_transcode: Simplify loop 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: CID1428858(2/2) Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- doc/examples/qsv_transcode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index 8e7d2899f12..a4440a3403f 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -335,10 +335,8 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec, char *optstr) fail: av_frame_free(&frame); - if (ret < 0) - return ret; } - return 0; + return ret; } int main(int argc, char **argv) -- 2.43.2 _______________________________________________ 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".