avformat/hls: fix double space

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9e974b2c45)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2025-12-24 14:13:56 +01:00
parent 0f111cc53f
commit 37bcbbd845
No known key found for this signature in database
GPG key ID: B18E8928B3948D64

View file

@ -965,7 +965,7 @@ static int parse_playlist(HLSContext *c, const char *url,
ptr = strchr(ptr, '@');
if (ptr)
seg_offset = strtoll(ptr+1, NULL, 10);
if (seg_size < 0 || seg_offset > INT64_MAX - seg_size) {
if (seg_size < 0 || seg_offset > INT64_MAX - seg_size) {
ret = AVERROR_INVALIDDATA;
goto fail;
}