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 317AD45D8F for ; Fri, 5 Jan 2024 20:54:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 75D7068CDD6; Fri, 5 Jan 2024 22:54:00 +0200 (EET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7B2C968C903 for ; Fri, 5 Jan 2024 22:53:54 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D43DFF805 for ; Fri, 5 Jan 2024 20:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1704488033; 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=konpGj1IpP6Y6PJYMXaKIehxEnsgKKxhZ708Sb+4nxg=; b=o6neCpgMu1RSs1P6vdNO6fwRMXpPgby3TgnbmcvLnNw60hB5PyWTVmGlvTUX6QeLIjmGEU 8NbJsFBAe+bOe465MXJUqKcz3ndri0HA3pCEVHsz1zbUP1q+iUNQce+58MYeu+wKzx8My2 8D0sh7RBycKyqvTx9rgR0bbaxYuShjgh6hCaY6XOtCtJYmyat7XqhBQNEfCqufzyC2lPax EWPpEaVMoC31+ZxmI9UkU6cHfJv4e9aUj9FbsmXwqg4pNyKlXnLrImXlIdk+Uir8fbrlhd ePhwkIGz5ON9xyHC1hNFbPdNtFLmQA2Z1fiqeOfctJ3y1PrJpiAvjnf2IB8Euw== Date: Fri, 5 Jan 2024 21:53:52 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240105205352.GE6420@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 1/4] avcodec/mdec: DC reading for STRv1 is like STRv2 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="===============8255637372347101617==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8255637372347101617== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RzyRI1FIOvhQ4MGO" Content-Disposition: inline --RzyRI1FIOvhQ4MGO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 02, 2024 at 02:49:26AM +0000, aybe aybe wrote: > Hi, >=20 > As I understand, support for .STR files is broken for almost 10 years now= (since 161442ff2c4b0dd8a5072c6bbe6bf55303fffccf it seems). >=20 > Currently, ffmpeg fails with tons of errors like this on version 1 STRs, = e.g. Wipeout 1: > [mdec @ 00000000027c72c0] ac-tex damaged at 1 9 >=20 > What happens is that only the audio is present in the video file. >=20 > Anyway, that one character patch fixes the problem, video is now rendered. >=20 > Signed-off-by: aybe > --- > libavcodec/mdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c > index 44b12471a9..c4904216b8 100644 > --- a/libavcodec/mdec.c > +++ b/libavcodec/mdec.c > @@ -68,7 +68,7 @@ static inline int mdec_decode_block_intra(MDECContext *= a, int16_t *block, int n) > const int qscale =3D a->qscale; >=20 > /* DC coefficient */ > - if (a->version =3D=3D 2) { > + if (a->version <=3D 2) { > block[0] =3D 2 * get_sbits(&a->gb, 10) + 1024; > } else { > component =3D (n <=3D 3 ? 0 : n - 4 + 1); This seems not to apply automatically here Applying: avcodec/mdec: DC reading for STRv1 is like STRv2 Using index info to reconstruct a base tree... error: patch failed: libavcodec/mdec.c:68 error: libavcodec/mdec.c: patch does not apply error: Did you hand edit your patch? [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Asymptotically faster algorithms should always be preferred if you have asymptotical amounts of data --RzyRI1FIOvhQ4MGO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZZhsYAAKCRBhHseHBAsP q9mMAJ9CPKrKVnKijTKPkxR6vl+KXvWZ/QCaAh+U9PJfIo9rJXnPjviTIfIOkho= =zETD -----END PGP SIGNATURE----- --RzyRI1FIOvhQ4MGO-- --===============8255637372347101617== 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". --===============8255637372347101617==--