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 CC22C48D23 for ; Wed, 24 Apr 2024 01:45:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F3BF068D370; Wed, 24 Apr 2024 04:45:30 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0B32B68D248 for ; Wed, 24 Apr 2024 04:45:23 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3CD2820002 for ; Wed, 24 Apr 2024 01:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713923123; 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=BzH0QSjPMSMwz8xqe2mT5wcv78aDLMjqdWfXJ7JAFxs=; b=IRKTv5MCExORQlrd+BLIo6fMVneG4d3B8ci7uKyYIIvz2tiMp7SVfRNIYGtveFRVhMjmdo fqzpXxWllBaCMiKVAGa0eupgy6h+nm9ElxKlduAUHnRMrvJn05v1iIiCx5QF5p9To42sBF JcUVy3whLNXu2C9oINupQMMQh+XMfrOCjhZag+Pf73KbKXDs380tg0LG6fJvI11BFW3HCu oWFBWpy1JGJGbdJ0FFcCjCy+AuWGIotjybNm8jBYWWN7Wt+8gRQzaxaZIKOUCM++WdlRJ9 S0LppCLRwq9c4VAdRrve4l7SIQ2aXLkgoBCvkVSAMvn9aZc/4Xf8BFf0KNyezQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 24 Apr 2024 03:45:18 +0200 Message-ID: <20240424014522.4015429-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/5] doc/examples/demux_decode: 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: CID1463550 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- doc/examples/demux_decode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/examples/demux_decode.c b/doc/examples/demux_decode.c index f26611d8f4f..64f5547bc43 100644 --- a/doc/examples/demux_decode.c +++ b/doc/examples/demux_decode.c @@ -138,11 +138,9 @@ static int decode_packet(AVCodecContext *dec, const AVPacket *pkt) ret = output_audio_frame(frame); av_frame_unref(frame); - if (ret < 0) - return ret; } - return 0; + return ret; } static int open_codec_context(int *stream_idx, -- 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".