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 272114004D for ; Sun, 19 Dec 2021 03:16:30 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F34DB68AF42; Sun, 19 Dec 2021 05:16:27 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C9B5868AA81 for ; Sun, 19 Dec 2021 05:16:20 +0200 (EET) Received: from 301de4447f55623bb5f04e9d71fc65fe ([1.152.241.137]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 1BJ3G8A1001966 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 19 Dec 2021 03:16:12 GMT Date: Sun, 19 Dec 2021 14:16:04 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20211218204628.22664-1-jpstewart@personalprojects.net> <20211218204628.22664-2-jpstewart@personalprojects.net> MIME-Version: 1.0 In-Reply-To: <20211218204628.22664-2-jpstewart@personalprojects.net> Subject: Re: [FFmpeg-devel] [PATCH 2/2] avformat/mvdec: explicitly set duration 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="===============2440578016938892928==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2440578016938892928== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KT4F9U43wcmQXPJS" Content-Disposition: inline --KT4F9U43wcmQXPJS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 18, 2021 at 03:46:28PM -0500, John-Paul Stewart wrote: > Resolves a warning that duration is being innaccurately estimated based > on bitrate. >=20 > Signed-off-by: John-Paul Stewart > --- > libavformat/mvdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c > index a5c5b205a6..1a5012e507 100644 > --- a/libavformat/mvdec.c > +++ b/libavformat/mvdec.c > @@ -319,7 +319,7 @@ static int mv_read_header(AVFormatContext *avctx) > avio_skip(pb, 4); > vst->codecpar->codec_type =3D AVMEDIA_TYPE_VIDEO; > vst->avg_frame_rate =3D fps; > - vst->nb_frames =3D avio_rb32(pb); > + vst->duration =3D vst->nb_frames =3D avio_rb32(pb); > v =3D avio_rb32(pb); > switch (v) { > case 1: both patches look good, and do not break tests. i will apply in a couple of days. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --KT4F9U43wcmQXPJS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCYb6j8AAKCRBnYHnFrEDd ayDmAKCNdeVAanYpe2HaeQh09ETigE78LwCfcDGaWQo4YgXgRodhz21/0+F9E/w= =HAec -----END PGP SIGNATURE----- --KT4F9U43wcmQXPJS-- --===============2440578016938892928== 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". --===============2440578016938892928==--