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 ESMTPS id 693484ABBC for ; Tue, 29 Apr 2025 23:44:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5D96768B297; Wed, 30 Apr 2025 02:44:14 +0300 (EEST) 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 BA61A68A5B9 for ; Wed, 30 Apr 2025 02:44:07 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 22C2F439BB for ; Tue, 29 Apr 2025 23:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1745970247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yIP65axHvpG0QszU7v7kkjw5AFC6QCVlnoVK93ik+4w=; b=mOFAuXqroT9M/wFAsPESn1DjF38T7QKLrc5IBAab2I1PC8vkM8JTduz3a6u6T2eo2bjAdy jrvrTxhSTBqzaXKvsocq4D0DuuZVdYjU76SWHsX2aADiK3ePmqs9+usxMISKtb/Vn3Mv93 Y+EFMuGHboIHSUvG9QUxDU1CoJ+Dj+XO6aFCAjPiT9gQLztc51XAsnj687BTKVBG3So5ZN Nj22D0HGmuDhbBWlbE1JTD6kLCCugpN4b0gzhklEeCcFq/k4t85NLw4pABHfWOQobIzxlo 8ct+sUjReAu/yOjSLaFmKwP2bFgk5j4P/si/qnYsz2UTIWaZM2NNYxiRBCwJpQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 30 Apr 2025 01:44:05 +0200 Message-ID: <20250429234405.2188882-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429234405.2188882-1-michael@niedermayer.cc> References: <20250429234405.2188882-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -93 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieehudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdejmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepveehleejfefglefgudeguedvtdejfeevhedvveevieeffedtjeekveefgedvfedunecuffhomhgrihhnpegsohhguhhluhhsrdgtfhgupdhnihgtohhvihguvghordhjphdpghhithhhuhgsrdgtohhmnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/2] avformat/hls: Fix flash1.bogulus.cfd support 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: Signed-off-by: Michael Niedermayer --- libavformat/hls.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 34a36f68f1f..1025ccd2f58 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -760,8 +760,11 @@ static int test_segment(AVFormatContext *s, const AVInputFormat *in_fmt, struct + 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0); } } else if (!strcmp(in_fmt->name, "mpegts")) { - matchF = av_match_ext( seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") - + 2*(ff_match_url_ext(seg->url, "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts") > 0); + const char *str = "ts,m2t,m2ts,mts,mpg,m4s,mpeg,mpegts" + ",html" // https://flash1.bogulus.cfd/ + ; + matchF = av_match_ext( seg->url, str) + + 2*(ff_match_url_ext(seg->url, str) > 0); } else if (!strcmp(in_fmt->name, "webvtt")) { matchF = av_match_ext( seg->url, "vtt,webvtt") + 2*(ff_match_url_ext(seg->url, "vtt,webvtt") > 0); @@ -2781,6 +2784,7 @@ static const AVOption hls_options[] = { ",cmfv,cmfa" // Ticket11526 www.nicovideo.jp ",ec3" // part of Ticket11435 (Elisa Viihde (Finnish online recording service)) ",fmp4" // https://github.com/yt-dlp/yt-dlp/issues/12700 + ",html" // https://flash1.bogulus.cfd/ }, INT_MIN, INT_MAX, FLAGS}, {"extension_picky", "Be picky with all extensions matching", -- 2.49.0 _______________________________________________ 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".