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 0E8A440C5E for ; Thu, 5 Jan 2023 00:46:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A6C1B68BCB0; Thu, 5 Jan 2023 02:46:54 +0200 (EET) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 41F0368AD28 for ; Thu, 5 Jan 2023 02:46:48 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id E3DC440003 for ; Thu, 5 Jan 2023 00:46:46 +0000 (UTC) Date: Thu, 5 Jan 2023 01:46:45 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20230105004645.GA4028235@pb2> References: <20230104164246.6133-1-anton@khirnov.net> <20230104164246.6133-2-anton@khirnov.net> MIME-Version: 1.0 In-Reply-To: <20230104164246.6133-2-anton@khirnov.net> Subject: Re: [FFmpeg-devel] [PATCH 2/8] fftools/ffmpeg: stop using AVCodecContext.sample_rate in decode_audio() 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: multipart/mixed; boundary="===============3850554516133251948==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3850554516133251948== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 04, 2023 at 05:42:40PM +0100, Anton Khirnov wrote: > Use the decoded frame's sample_rate instead, which is the authoritative > value. >=20 > Drop a now-obsolete check validating AVCodecContext.sample_rate. > --- > fftools/ffmpeg.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) Causes division by 0=20 will send you the sample privately thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew .= =2E." --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCY7Yd6wAKCRBhHseHBAsP q3fdAJ9n2lxlA9yYP9D9CIdt/m0J6MFZ0QCfby87bwzNc/H6wAQSIdnAFPApJ1M= =937N -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- --===============3850554516133251948== 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". --===============3850554516133251948==--