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 6677F4FFE1 for ; Sun, 6 Jul 2025 19:14:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id BBAB768EB44; Sun, 6 Jul 2025 22:14:07 +0300 (EEST) Received: from mail.qult.net (unknown [78.193.33.39]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 90DFD68E15F for ; Sun, 6 Jul 2025 22:13:59 +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=A1HTeCapqaqPkkCBB0A83pBd/YtC8jCLozzJGHkWPzM=; b=b pWpmPqynQ3MXCTZHeEQRCdSnEkGz12szkXEyPMzVFztu1p698HyEw9rL3mgt3pt4CiGCvcxQR7Uw5 aeD0fvWCantbq8kDm2DLPMIdTTCq3M/FbmK+LZrN13WGeOv0y5n8b/MpNP5H0WmXd8oKy7ZQsRhy0 DuU9FRvKNOJz7rpE=; 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 1uYU7z-0000000DqyK-3PhQ for ffmpeg-devel@ffmpeg.org; Sun, 06 Jul 2025 20:30:16 +0200 Received: from ig by zenon.qult.net with local (Exim 4.98.1) (envelope-from ) id 1uYU7t-00000001mEY-2euh for ffmpeg-devel@ffmpeg.org; Sun, 06 Jul 2025 20:30:09 +0200 Date: Sun, 6 Jul 2025 20:30:09 +0200 From: Ignacy =?utf-8?B?R2F3xJlkemtp?= To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline Subject: [FFmpeg-devel] [PATCH 0/1] Fix tmix 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: A simple example of the bug: ffplay -f lavfi color=3Dc=3Dgray -vf 'tmix=3Denable=3Dgt(t\,1)' After one second, the color is wrong (green in my case), not the expected gray. It seems it is due to the fact that parse_weights determines that the weights are all 1 and FAST_TMIX_SLICE should be used instead of MIX_SLICE. But if the filter is not running from the very start with these weights, FAST_TMIX_SLICE will not work properly. Besides, should FAST_TMIX_SLICE not be used with float types either, as addition on floats is not associative and rounding errors will accumulate? Ignacy Gaw=EAdzki (1): avfilter/f_mix: disable fast on discontinuities libavfilter/vf_mix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- = 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".