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 D97FD448D5 for ; Mon, 26 Sep 2022 20:21:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D1D4B68B3EC; Mon, 26 Sep 2022 23:21:34 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 90366680CE9 for ; Mon, 26 Sep 2022 23:21:28 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 592A120005 for ; Mon, 26 Sep 2022 20:21:27 +0000 (UTC) Date: Mon, 26 Sep 2022 22:21:25 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220926202125.GW6583@pb2> References: MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v2] lavc/hevc_ps: fix process failed when SPS before VPS in hvcC 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="===============1071814980308593289==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1071814980308593289== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hc4757KF+wLS/WHK" Content-Disposition: inline --hc4757KF+wLS/WHK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 26, 2022 at 05:38:14PM +0800, 1035567130@qq.com wrote: > From: Wang Yaqiang >=20 > In some videos, SPS will be stored before VPS in hvcC box, > parse SPS does not depend on VPS, so the video is expected to be processe= d normally. > Added "parsed_vps" parameter to indicate whether VPS have been parsed. > Only VPS have been parsed can be verified during SPS parsing. >=20 > Signed-off-by: Wang Yaqiang > --- > libavcodec/hevc_ps.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) This causes segfaults =3D=3D816=3D=3D Invalid read of size 8 =3D=3D816=3D=3D at 0xFAF178: hevc_parse (in ffmpeg_g) =3D=3D816=3D=3D by 0xA7A2A6: av_parser_parse2 (in ffmpeg_g) =3D=3D816=3D=3D by 0x5FC388: parse_packet (in ffmpeg_g) =3D=3D816=3D=3D by 0x5FDC5D: read_frame_internal (in ffmpeg_g) =3D=3D816=3D=3D by 0x5FFA10: avformat_find_stream_info (in ffmpeg_g) =3D=3D816=3D=3D by 0x2F6054: open_input_file (in ffmpeg_g) =3D=3D816=3D=3D by 0x2FC6AB: ffmpeg_parse_options (in ffmpeg_g) =3D=3D816=3D=3D by 0x2E8A34: main (in ffmpeg_g) =3D=3D816=3D=3D Address 0x8 is not stack'd, malloc'd or (recently) free'd [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When the tyrant has disposed of foreign enemies by conquest or treaty, and there is nothing more to fear from them, then he is always stirring up some war or other, in order that the people may require a leader. -- Plato --hc4757KF+wLS/WHK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYzIJwgAKCRBhHseHBAsP q/uqAJ0dFMBKEU09Q8vqW5XF7WQHNlwiAgCeJVqGH6gBLGDnqi5e/TK1OxX48DE= =qAY4 -----END PGP SIGNATURE----- --hc4757KF+wLS/WHK-- --===============1071814980308593289== 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". --===============1071814980308593289==--