From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 3135F4B906 for <ffmpegdev@gitmailbox.com>; Thu, 27 Mar 2025 01:16:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B9667687BF1; Thu, 27 Mar 2025 03:16:45 +0200 (EET) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 232D8687B89 for <ffmpeg-devel@ffmpeg.org>; Thu, 27 Mar 2025 03:16:39 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 54AD441CFD; Thu, 27 Mar 2025 01:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1743038198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1AoDn9JMbRZ3mxCbpIzPZqjYZTK7q4J36Z/2iz7yMJU=; b=MNbEdNhna/ftYnUMursY/YfQ+Eww3x/G5OPNL69Lu5jdOIhvko7J3T+kl3EMxZSTyxbfDU YGNCXJM5CWzE/CAy4187uPY/++l9P0+HJihOYo2LWgugKPK0sEHKatvdSvcDWUDY2CGiG7 8+bv6RZXTlqAyVPV7vnOInWdUYIOHTvj/O6UseBIdEYwN9L9DUE2js+75lo2KX3qv0u6lV hr//HHjr//uwScpXEhW3QmyVopkcswZnpNSGT96QyEPoKjEf2pxznjajbXDJ8Ik1DfVsJ8 JtCzRKSidmDCpA5zM+Wqk8hMl9NeJyBxBtuWTH2rPjc4pzdKGXGMuvbjkgxKFw== Date: Thu, 27 Mar 2025 02:16:37 +0100 From: Michael Niedermayer <michael@niedermayer.cc> To: ffmpeg-devel@ffmpeg.org Message-ID: <20250327011637.GC2448403@pb2> References: <20250326040856.71D62412944@natalya.videolan.org> MIME-Version: 1.0 In-Reply-To: <20250326040856.71D62412944@natalya.videolan.org> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieejtdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhephfelgeehuedujeejgeeuudefhfetfffggeejuefhvdfhgfeikeeuudevieeutddvnecuffhomhgrihhnpehvihguvgholhgrnhdrohhrghenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepvddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhgpdhrtghpthhtoheprghnughrvggrshdrrhhhvghinhhhrghrughtsehouhhtlhhoohhkrdgtohhm X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/mjpegenc: Simplify allocating huffman table X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Content-Type: multipart/mixed; boundary="===============2510600895040194990==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250327011637.GC2448403@pb2/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> --===============2510600895040194990== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JgQwtEuHJzHdouWu" Content-Disposition: inline --JgQwtEuHJzHdouWu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 26, 2025 at 04:08:55AM +0000, Andreas Rheinhardt wrote: > ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt@outlook.= com> | Mon Mar 3 02:36:55 2025 +0100| [24dbc4c2e82481f89d6fcacee1949e5038c= 5c2fc] | committer: Andreas Rheinhardt >=20 > avcodec/mjpegenc: Simplify allocating huffman table >=20 > Reuse the already computed value of macroblocks; use an array > instead of a switch, evaluate 64 * sizeof(MJpegHuffmanCode) > at compile-time. >=20 > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> >=20 > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=3Dcommit;h=3D24dbc4c2e= 82481f89d6fcacee1949e5038c5c2fc > --- >=20 > libavcodec/mjpegenc.c | 24 ++++++++++-------------- > 1 file changed, 10 insertions(+), 14 deletions(-) Breaks: (did not investigate why) =2E/ffmpeg -i lena.pnm -strict -1 -s 4096x2048 -bitexact -y /tmp/file-4096= x2048.m2v && ./ffmpeg -i /tmp/file-4096x2048.m2v -y -bitexact /tmp/file-409= 6x2048-dec.jpg [vost#0:0/mjpeg @ 0x5576d6b7ab00] [enc:mjpeg @ 0x5576d6b79580] Error while = opening encoder - maybe incorrect parameters such as bit_rate, rate, width = or height. [vf#0:0 @ 0x5576d6b7f140] Error sending frames to consumers: Cannot allocat= e memory [vf#0:0 @ 0x5576d6b7f140] Task finished with error code: -12 (Cannot alloca= te memory) [vf#0:0 @ 0x5576d6b7f140] Terminating thread with return code -12 (Cannot a= llocate memory) [vost#0:0/mjpeg @ 0x5576d6b7ab00] [enc:mjpeg @ 0x5576d6b79580] Could not op= en encoder before EOF [vost#0:0/mjpeg @ 0x5576d6b7ab00] Task finished with error code: -22 (Inval= id argument) [vost#0:0/mjpeg @ 0x5576d6b7ab00] Terminating thread with return code -22 (= Invalid argument) [out#0/image2 @ 0x5576d6b7ec80] Nothing was written into output file, becau= se at least one of its streams received no packets. thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB What does censorship reveal? It reveals fear. -- Julian Assange --JgQwtEuHJzHdouWu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ+Sm8QAKCRBhHseHBAsP q65NAJ9nF/GCXd7X5aGlkOe0I/no2SqY5ACgmuUP5WD58E5gXMywt9pVxywHNaE= =PVzY -----END PGP SIGNATURE----- --JgQwtEuHJzHdouWu-- --===============2510600895040194990== 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". --===============2510600895040194990==--