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 B96124C20D for ; Fri, 23 May 2025 16:07:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id C881F68D6CA; Fri, 23 May 2025 19:06:59 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 65E7568D5B0 for ; Fri, 23 May 2025 19:06:52 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id BA76443A4B for ; Fri, 23 May 2025 16:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1748016411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eygkK38fxGLcZKtP3CLI8XiLZU9a1coOmpq4VDVUmc4=; b=iwvrBF6grwMsf8U13w53qhYAJZZrVnJ3k5PIMIbl9U8opQUxXSCnpWNUyab9FZ5c9qXaJd 68SH98F8dVs7vb7tJrKXtqXIRgpvNKeTB714MPoF1g0hg2MUV42e/rWpMLW/7VBdouzWpX WEeXypkaCww4nNjegkH/OMT6FdG/SoHGsozWNvlHs+6rPrzjmY3OaKx4rbx+PcwA1Dd3NC 9xjqjTU+DHCKGs7W3UW/dOCT2NWDQJ8aIjxGzWBPaE5wSwbrn7X9jTEbZnFiYuozxoNPl7 Bl2bulqsXkOv8XQz481s6jhb3AoDpU1A9JRd1o+tY0xca8AGbWQci9Uum5a2JA== Date: Fri, 23 May 2025 18:06:49 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250523160649.GE29660@pb2> References: <20250522235938.37918-1-epirat07@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250522235938.37918-1-epirat07@gmail.com> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdelvdelucdltddurdegfedvrddttddmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeelkeeggfffiedufeejueffjeduhedttdduledtheevveevtdeiueelhfdtuedtkeenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 1/2] avformat/rtsp: parse framerate in sdp 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="===============9137716674446751859==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============9137716674446751859== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Hr5PwJHywBDnhAYt" Content-Disposition: inline --Hr5PwJHywBDnhAYt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2025 at 01:59:37AM +0200, Marvin Scholz wrote: > From: Erik Linge >=20 > Co-authored-by: Marvin Scholz > --- > libavformat/rtsp.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c > index 5ea471b40c..6807e1d6b5 100644 > --- a/libavformat/rtsp.c > +++ b/libavformat/rtsp.c > @@ -618,6 +618,13 @@ static void sdp_parse_line(AVFormatContext *s, SDPPa= rseState *s1, > s1->seen_fmtp =3D 1; > av_strlcpy(s1->delayed_fmtp, buf, sizeof(s1->delayed_fmt= p)); > } > + } else if (av_strstart(p, "framerate:", &p) && s->nb_streams > 0= ) { > + // RFC 8866 > + double framerate; > + if (av_sscanf(p, "%lf%c", &framerate, &(char){}) =3D=3D 1) { > + st =3D s->streams[s->nb_streams - 1]; > + st->avg_frame_rate =3D av_d2q(framerate, INT_MAX); > + } mingw64: src/libavformat/rtsp.c: In function =E2=80=98sdp_parse_line=E2=80=99: src/libavformat/rtsp.c:624:58: error: empty scalar initializer 624 | if (av_sscanf(p, "%lf%c", &framerate, &(char){}) =3D=3D= 1) { | ^ src/libavformat/rtsp.c:624:58: note: (near initialization for =E2=80=98(ano= nymous)=E2=80=99) make: *** [src/ffbuild/common.mak:81: libavformat/rtsp.o] Error 1 make: *** Waiting for unfinished jobs.... thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If one takes all money from those who grow wealth and gives it to those who do not grow wealth, 10 years later, almost the same people who where wealthy will be wealthy again, the same people who where poor will be poor again. --Hr5PwJHywBDnhAYt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaDCdGQAKCRBhHseHBAsP q/g8AJ91YScpuSzxe3eQtsehubCUm1JPigCaAguQL4+ZkemT/inWe4eouSazwvI= =qCXD -----END PGP SIGNATURE----- --Hr5PwJHywBDnhAYt-- --===============9137716674446751859== 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". --===============9137716674446751859==--