From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id B814C4E100 for ; Sun, 6 Jul 2025 19:14:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 5C95968F414; Sun, 6 Jul 2025 22:14:12 +0300 (EEST) Received: from mail.qult.net (unknown [78.193.33.39]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 21A1368EFCC for ; Sun, 6 Jul 2025 22:14:05 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qult.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Subject :To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=jemOIJndcvZrxEyjaceoQwMtwpbOZ87IuH18WCYgo4s=; b=V 06ghl5heHSqKDhGX9MGnlotwa+B7LfOfD0a7A87uBI8KS4HYLRbl+u7zakoguFQ1jGW8sZ57Oi6ek RsaCBLDMxH0oEpfI0E+/HHwtH9r1IK5F++S2Oub6erD7/AJyvW4/dzb0ti37CJFsfCtUjO20eJF1r 8OpYfkQcug5+4xfY=; Received: from [2001:470:60ee:0:da5e:d3ff:fe0e:33f5] (helo=zenon.qult.net) by mail.qult.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97) (envelope-from ) id 1uYU84-0000000Dqyg-0268 for ffmpeg-devel@ffmpeg.org; Sun, 06 Jul 2025 20:30:20 +0200 Received: from ig by zenon.qult.net with local (Exim 4.98.1) (envelope-from ) id 1uYU7y-00000001mEh-0Ii5 for ffmpeg-devel@ffmpeg.org; Sun, 06 Jul 2025 20:30:14 +0200 Date: Sun, 6 Jul 2025 20:30:14 +0200 From: Ignacy =?utf-8?B?R2F3xJlkemtp?= To: ffmpeg-devel@ffmpeg.org Message-ID: <2zwrno7dlcw23sloreb2souwb6fd6z4rcj4ywodm3mwbsmb2zw@gwponcvhmut4> MIME-Version: 1.0 Content-Disposition: inline Subject: [FFmpeg-devel] [PATCH 1/1] avfilter/f_mix: disable fast on discontinuities 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="iso-8859-2" Content-Transfer-Encoding: quoted-printable Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: FAST_TMIX_SLICE can work properly only in the case the filter is run from the start and has never been disabled. Therefore, once s->fast is set to 0, it shall never be set back to 1. Signed-off-by: Ignacy Gaw=EAdzki --- libavfilter/vf_mix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 517bb2450f..c996cdd9fb 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -88,7 +88,6 @@ static int parse_weights(AVFilterContext *ctx) char *p, *arg, *saveptr =3D NULL; int i, last =3D 0; = - s->fast =3D 1; s->wfactor =3D 0.f; p =3D s->weights_str; for (i =3D 0; i < s->nb_inputs; i++) { @@ -150,6 +149,8 @@ static av_cold int init(AVFilterContext *ctx) } } = + s->fast =3D 1; + return parse_weights(ctx); } = @@ -295,6 +296,7 @@ static int process_frame(FFFrameSync *fs) } = if (ctx->is_disabled) { + s->fast =3D 0; out =3D av_frame_clone(s->frames[0]); if (!out) return AVERROR(ENOMEM); @@ -506,6 +508,7 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFr= ame *in) } = if (ctx->is_disabled) { + s->fast =3D 0; out =3D av_frame_clone(s->frames[0]); if (!out) return AVERROR(ENOMEM); -- = 2.48.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".