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 E8BE448D2F for ; Thu, 25 Jan 2024 01:19:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A62F768D114; Thu, 25 Jan 2024 03:19:44 +0200 (EET) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 955CF68A943 for ; Thu, 25 Jan 2024 03:19:38 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id F0C6DE0004 for ; Thu, 25 Jan 2024 01:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1706145577; 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=n144r4u2JLMq+AGGQ7QNmSXosqPE/mT6c+yddSIe228=; b=BES6wojwjsSEa6XnvWwfFxhx+tgbR5UTQ8tHA7n1Ox4nWWb0Zhc++emnB12tWJX3V2E+Ob 3tdrJAtdTDzF+1Qmp8MJGmF84wMaE4sF6PxisjDk4g5Z7IucwDgcbw8VPYICz6JSY7y7y5 ueMDZ68vS8xj7QScw+Waq3yzC77CzbZgQF3CF/swcRopyrzR4hOCgIJPHPXv3doyLHHUzm iS/4ZQbaz/rPt/0DAhR49cBaGqFhvxA9n15V+uj/gX7HfpU7uVK7gYsvE6BxK3mYSGOcFg IG5gYtcDDjQ6ywS6tQk/fuPQkoqUrX1IidS9f/VR2xVWvH2QTzn7JLYU2REgMw== Date: Thu, 25 Jan 2024 02:19:36 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240125011936.GG6420@pb2> References: <20240124081702.4759-1-anton@khirnov.net> <20240124081702.4759-27-anton@khirnov.net> MIME-Version: 1.0 In-Reply-To: <20240124081702.4759-27-anton@khirnov.net> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 27/31] fftools/ffmpeg_dec: stop passing InputStream to dec_open() 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="===============8889674718542999885==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8889674718542999885== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="P/XS8wfvSybnnBkt" Content-Disposition: inline --P/XS8wfvSybnnBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024 at 09:16:57AM +0100, Anton Khirnov wrote: > --- > fftools/ffmpeg.h | 3 ++- > fftools/ffmpeg_dec.c | 50 +++++++++++++++++++++++++++--------------- > fftools/ffmpeg_demux.c | 4 +++- > 3 files changed, 37 insertions(+), 20 deletions(-) This causes segfaults: (ill mail you the sample) Metadata: creation_time : 1999-10-07T10:13:38.000000Z Duration: 00:00:17.54, start: 0.000000, bitrate: 1980 kb/s Stream #0:0[0x1](eng): Video: qtrle (rle / 0x20656C72), none, 310x280, 4= 38202 kb/s, 25 fps, 25 tbr, 600 tbn (default) Metadata: creation_time : 1999-10-07T10:13:38.000000Z handler_name : Apple Video Media Handler vendor_id : appl encoder : Animation [qtrle @ 0x16a2bf40] Unsupported colorspace: 108 bits/sample? =3D=3D24457=3D=3D at 0x13E0719: VALGRIND_PRINTF_BACKTRACE (valgrind.h:63= 03) =3D=3D24457=3D=3D by 0x13E1318: av_log_default_callback (log.c:404) =3D=3D24457=3D=3D by 0x13E15BF: av_vlog (log.c:439) =3D=3D24457=3D=3D by 0x13E141E: av_log (log.c:418) =3D=3D24457=3D=3D by 0xC7C031: qtrle_decode_init (qtrle.c:434) =3D=3D24457=3D=3D by 0x88AF88: avcodec_open2 (avcodec.c:337) =3D=3D24457=3D=3D by 0x2448EE: dec_open (ffmpeg_dec.c:1024) =3D=3D24457=3D=3D by 0x2486D7: ist_use (ffmpeg_demux.c:938) =3D=3D24457=3D=3D by 0x248835: ist_filter_add (ffmpeg_demux.c:973) =3D=3D24457=3D=3D by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676) =3D=3D24457=3D=3D by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:= 1072) =3D=3D24457=3D=3D by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444) =3D=3D24457=3D=3D by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550) =3D=3D24457=3D=3D by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858) =3D=3D24457=3D=3D by 0x270A6C: of_open (ffmpeg_mux_init.c:3091) =3D=3D24457=3D=3D by 0x274D48: open_files (ffmpeg_opt.c:1333) =3D=3D24457=3D=3D by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387) =3D=3D24457=3D=3D by 0x289391: main (ffmpeg.c:1032) [vist#0:0/qtrle @ 0x16a25e80] [dec:qtrle @ 0x16a2b9c0] Error while opening = decoder: Invalid data found when processing input =3D=3D24457=3D=3D at 0x13E0719: VALGRIND_PRINTF_BACKTRACE (valgrind.h:63= 03) =3D=3D24457=3D=3D by 0x13E1318: av_log_default_callback (log.c:404) =3D=3D24457=3D=3D by 0x13E15BF: av_vlog (log.c:439) =3D=3D24457=3D=3D by 0x13E141E: av_log (log.c:418) =3D=3D24457=3D=3D by 0x24494E: dec_open (ffmpeg_dec.c:1025) =3D=3D24457=3D=3D by 0x2486D7: ist_use (ffmpeg_demux.c:938) =3D=3D24457=3D=3D by 0x248835: ist_filter_add (ffmpeg_demux.c:973) =3D=3D24457=3D=3D by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676) =3D=3D24457=3D=3D by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:= 1072) =3D=3D24457=3D=3D by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444) =3D=3D24457=3D=3D by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550) =3D=3D24457=3D=3D by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858) =3D=3D24457=3D=3D by 0x270A6C: of_open (ffmpeg_mux_init.c:3091) =3D=3D24457=3D=3D by 0x274D48: open_files (ffmpeg_opt.c:1333) =3D=3D24457=3D=3D by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387) =3D=3D24457=3D=3D by 0x289391: main (ffmpeg.c:1032) =3D=3D24457=3D=3D =3D=3D24457=3D=3D Process terminating with default action of signal 11 (SIG= SEGV) =3D=3D24457=3D=3D Bad permissions for mapped region at address 0x1B68D28 =3D=3D24457=3D=3D at 0x13E45C9: av_freep (mem.c:250) =3D=3D24457=3D=3D by 0x241E09: dec_free (ffmpeg_dec.c:108) =3D=3D24457=3D=3D by 0x2449D4: dec_open (ffmpeg_dec.c:1041) =3D=3D24457=3D=3D by 0x2486D7: ist_use (ffmpeg_demux.c:938) =3D=3D24457=3D=3D by 0x248835: ist_filter_add (ffmpeg_demux.c:973) =3D=3D24457=3D=3D by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676) =3D=3D24457=3D=3D by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:= 1072) =3D=3D24457=3D=3D by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444) =3D=3D24457=3D=3D by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550) =3D=3D24457=3D=3D by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858) =3D=3D24457=3D=3D by 0x270A6C: of_open (ffmpeg_mux_init.c:3091) =3D=3D24457=3D=3D by 0x274D48: open_files (ffmpeg_opt.c:1333) =3D=3D24457=3D=3D by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387) =3D=3D24457=3D=3D by 0x289391: main (ffmpeg.c:1032) [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Into a blind darkness they enter who follow after the Ignorance, they as if into a greater darkness enter who devote themselves to the Knowledge alone. -- Isha Upanishad --P/XS8wfvSybnnBkt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZbG3JAAKCRBhHseHBAsP q5QwAJ93vbM71AhGgi+cz6A40POnkeXdoQCgm8k0C/HwykbTIEhxmtmibAlrOfw= =MlCk -----END PGP SIGNATURE----- --P/XS8wfvSybnnBkt-- --===============8889674718542999885== 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". --===============8889674718542999885==--