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 087DF403A7 for ; Tue, 24 May 2022 00:07:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BB04268B50F; Tue, 24 May 2022 03:07:22 +0300 (EEST) Received: from vie01a-dmta-at01-2.mx.upcmail.net (vie01a-dmta-at01-2.mx.upcmail.net [62.179.121.146]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 248E768B33E for ; Tue, 24 May 2022 03:07:16 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-at01.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1ntI4x-00AXuD-4K for ffmpeg-devel@ffmpeg.org; Tue, 24 May 2022 02:07:15 +0200 Received: from ren-mail-psmtp-mg02. ([80.109.253.241]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id tI4cn0DrH8s8UtI4xnMoj1; Tue, 24 May 2022 02:07:15 +0200 Received: from localhost ([213.47.68.29]) by ren-mail-psmtp-mg02. with ESMTP id tI3zn31lL8eSWtI3zn0O1U; Tue, 24 May 2022 02:06:15 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.4 cv=KKE5sHJo c=1 sm=1 tr=0 ts=628c2177 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=jMkcRSniPkpubY0t4e4A:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 24 May 2022 02:06:15 +0200 Message-Id: <20220524000615.5264-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220524000615.5264-1-michael@niedermayer.cc> References: <20220524000615.5264-1-michael@niedermayer.cc> X-CMAE-Envelope: MS4wfGFa5p1chuA4r/Bfe5wA1zg4/l6OrB9h3Eptvc4A8RCbEIlOqKBIIOdZObRcjgLvSdUwNq8gAVydW5ficaidfoCSeHIfNveIHDY0jPyMGCCbhexq7wIl +9XvIA/VHA6HP3wvg0gHtkaTAU8lMy7wT43LvR0xpVhWKrQJluZz0vT24tPKJ7luGiDpAW0Qch9NHw== Subject: [FFmpeg-devel] [PATCH 2/2] avfilter/vf_tpad: Mark unreachable code by av_assert() 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 MIME-Version: 1.0 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: Helps: CID1440835 Signed-off-by: Michael Niedermayer --- libavfilter/vf_tpad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_tpad.c b/libavfilter/vf_tpad.c index c870478158..1a41c3f1a7 100644 --- a/libavfilter/vf_tpad.c +++ b/libavfilter/vf_tpad.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/opt.h" #include "avfilter.h" @@ -159,7 +160,8 @@ static int activate(AVFilterContext *ctx) frame = av_frame_clone(s->cache_stop); if (!frame) return AVERROR(ENOMEM); - } + } else + av_assert1(0); frame->pts = s->pts; s->pts += av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); if (s->pad_stop > 0) -- 2.17.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".