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 3DA5B40A6A for ; Sat, 4 Jun 2022 11:58:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A9EE668B74A; Sat, 4 Jun 2022 14:58:35 +0300 (EEST) Received: from shout02.mail.de (shout02.mail.de [62.201.172.25]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A8DBC68B6B9 for ; Sat, 4 Jun 2022 14:58:29 +0300 (EEST) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout02.mail.de (Postfix) with ESMTP id 53C6CA1CEC for ; Sat, 4 Jun 2022 13:58:29 +0200 (CEST) Received: from smtp04.mail.de (smtp04.bt.mail.de [10.0.121.214]) by postfix02.mail.de (Postfix) with ESMTP id 3B246A03C2 for ; Sat, 4 Jun 2022 13:58:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1654343909; bh=Mmx2//sahdPoa/7EuUp2PtdxrXNTvDuNkUwM++nt/TU=; h=From:To:Subject:Date:Message-ID:From:To:CC:Subject:Reply-To; b=1YKXjh575JRo9kTuquSl4Sd4/g67Oa7NpzhQd6vSYg/q4FlB+ZlrCuHnM5GxkUvE1 BbXjuSKxuPjszde5ajnGehNPXuVt7ga/aFw9m2ZBhpcAVf0yzI/37LBF2Fbz9Sc0iV 6lB2/QqX9KFF4fP2f8FpkJs+zEogaDsJr1kr8wRA7lgXEYNdw2mQpa/TWIcELP6i2r +QSqgNJpMrSZAz06Th+pysf4TC7Tr3U9rKKx0/ZAZAKvOr9eMH4mB/AHETOUZ9GFHv ODXm76vRLdGEcb5LTqMgWG3N4QjQUblhHd5iAhAc2u9hcY1AkJCyKB6CcSA8ZXwN97 FFmowrNVPNT6A== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp04.mail.de (Postfix) with ESMTPSA id B35D0C0032 for ; Sat, 4 Jun 2022 13:58:28 +0200 (CEST) From: "Thilo Borgmann" To: "FFmpeg development discussions and patches" Date: Sat, 04 Jun 2022 13:58:22 +0200 Message-ID: <36E09CBA-BC44-42CD-99F8-9A5D4BE80606@mail.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_MailMate_F0A6E1AB-C4F7-43FA-92A4-FF2E0556B1A1_=" X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1760 X-purgate-ID: 154282::1654343909-000016C9-B57791DC/0/0 Subject: Re: [FFmpeg-devel] [PATCH 1/2] lavfi/blockdetect: Fix possible div by 0 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --=_MailMate_F0A6E1AB-C4F7-43FA-92A4-FF2E0556B1A1_= Content-Type: text/plain; markup=markdown $subject -Thilo --=_MailMate_F0A6E1AB-C4F7-43FA-92A4-FF2E0556B1A1_= Content-Disposition: attachment; filename=0002-lavfi-blockdetect-Reindent-after-last-commit.patch Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =46rom 11bc0a429d35815da7950f85b5f48f90758dc9ef Mon Sep 17 00:00:00 2001 From: Thilo Borgmann Date: Sat, 4 Jun 2022 13:47:31 +0200 Subject: [PATCH 2/2] lavfi/blockdetect: Reindent after last commit --- libavfilter/vf_blockdetect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_blockdetect.c b/libavfilter/vf_blockdetect.c index 85fca68..2728359 100644 --- a/libavfilter/vf_blockdetect.c +++ b/libavfilter/vf_blockdetect.c @@ -133,8 +133,8 @@ static float calculate_blockiness(BLKContext *s, int = w, int h, } } if (block_count && nonblock_count) { - temp =3D (block / block_count) / (nonblock / nonblock_count); - ret =3D FFMAX(ret, temp); + temp =3D (block / block_count) / (nonblock / nonblock_count)= ; + ret =3D FFMAX(ret, temp); } } = @@ -178,8 +178,8 @@ static float calculate_blockiness(BLKContext *s, int = w, int h, } } if (block_count && nonblock_count) { - temp =3D (block / block_count) / (nonblock / nonblock_count); - ret =3D FFMAX(ret, temp); + temp =3D (block / block_count) / (nonblock / nonblock_count)= ; + ret =3D FFMAX(ret, temp); } } = -- = 1.8.3.2 --=_MailMate_F0A6E1AB-C4F7-43FA-92A4-FF2E0556B1A1_= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --=_MailMate_F0A6E1AB-C4F7-43FA-92A4-FF2E0556B1A1_=--