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 76E5142EC4 for ; Thu, 12 May 2022 14:22:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 329E668B3EF; Thu, 12 May 2022 17:22:54 +0300 (EEST) Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B045668B2BD for ; Thu, 12 May 2022 17:22:47 +0300 (EEST) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4KzYrm0YBsz9slD for ; Thu, 12 May 2022 16:22:32 +0200 (CEST) Date: Thu, 12 May 2022 16:22:26 +0200 (CEST) From: tpikonen@mailbox.org To: "ffmpeg-devel@ffmpeg.org" Message-ID: <2080210331.658888.1652365346800@office.mailbox.org> MIME-Version: 1.0 X-Priority: 3 Importance: Normal Subject: [FFmpeg-devel] [PATCH] avformat/webvttdec: Ignore REGION and STYLE chunks 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes trac ticket #8684. Signed-off-by: Teemu Ikonen --- libavformat/webvttdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index 52320ba7..49895b0a 100644 --- a/libavformat/webvttdec.c +++ b/libavformat/webvttdec.c @@ -92,6 +92,8 @@ static int webvtt_read_header(AVFormatContext *s) /* ignore header chunk */ if (!strncmp(p, "\xEF\xBB\xBFWEBVTT", 9) || !strncmp(p, "WEBVTT", 6) || + !strncmp(p, "REGION", 6) || + !strncmp(p, "STYLE", 5) || !strncmp(p, "NOTE", 4)) continue; -- 2.35.1 _______________________________________________ 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".