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 0A0C24B700 for ; Tue, 11 Jun 2024 21:59:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BB81E68D8CB; Wed, 12 Jun 2024 00:59:14 +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 7C5EC68D756 for ; Wed, 12 Jun 2024 00:59:08 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D08961C0002 for ; Tue, 11 Jun 2024 21:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1718143148; 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=j/3nWG3Xt78BUPao2PAj+RBRAkoi/VCNuh87Kk7v9XI=; b=dZ1kdatiMnnxopn6Mwwjz6YXl2NegeaShYQTup8YjJPoGnKTaveYlUNEDFrxqJD/YERaDz gU250RcJ7EnLstovGCL5qSEa4wRBlCILBPnEBtQajbgTUoeVYqI3jQ+de/PBtSVL4oBm0S RfnPcgVExyb9Smjf6zni+vkUbvPFqlGqfPUUUczAX1kT+WQpoEv9KRVzRKEIirbY2i/agF sGvHJ9JENjW5O5YA35u+eG9VpuS+u3SDwIbp3rDwJVBBENvheUbZJ3BBAR76DZx/k08OF2 RoPIdwL+4BfWQ1vNUGAGt00Vaix2ge7Qp5SXx3I5F/MkpISz6cnXRJ2QqkXL6Q== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 11 Jun 2024 23:59:03 +0200 Message-ID: <20240611215906.1106071-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/4] avfilter/avf_showcwt: Check av_parse_video_rate() for failure 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: CID1539147 Unused value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/avf_showcwt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index 24d16d9075d..89a019a0d41 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -1028,6 +1028,8 @@ static int config_output(AVFilterLink *outlink) s->auto_frame_rate = av_make_q(inlink->sample_rate, s->hop_size); if (strcmp(s->rate_str, "auto")) { ret = av_parse_video_rate(&s->frame_rate, s->rate_str); + if (ret < 0) + return ret; } else { s->frame_rate = s->auto_frame_rate; } -- 2.45.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".