Projects
Essentials
A_tw-ffmpeg-4
fix-CVE-2026-90816-part04.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-CVE-2026-90816-part04.patch of Package A_tw-ffmpeg-4
From 17943768e42c2044f91ebe34d509da782fa2922b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michael@niedermayer.cc> Date: Tue, 11 Aug 2026 03:56:46 +0200 Subject: [PATCH] avformat/hlsproto: derive the target duration when EXT-X-TARGETDURATION is missing Fixes: infinite loop --- libavformat/hlsproto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 906f1bbaf2..f0e2230a70 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -245,6 +245,10 @@ static int hls_open(URLContext *h, const char *uri, int flags) ret = AVERROR(EIO); goto fail; } + if (!s->target_duration) { + av_log(h, AV_LOG_WARNING, "Missing #EXT-X-TARGETDURATION\n"); + s->target_duration = s->segments[s->n_segments - 1]->duration; + } s->cur_seq_no = s->start_seq_no; if (!s->finished && s->n_segments >= 3) s->cur_seq_no = s->start_seq_no + s->n_segments - 3; -- 2.51.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.