mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
hlsenc: use the basename to generate the list entries
The segment path is desumed from the playlist path, recording a relative path in the playlist while serving the file could lead to misleading results.
This commit is contained in:
parent
d8fd06c37d
commit
66f7b4862f
@ -85,7 +85,8 @@ static int append_entry(HLSContext *hls, uint64_t duration)
|
|||||||
if (!en)
|
if (!en)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
av_get_frame_filename(en->name, sizeof(en->name), hls->basename,
|
av_get_frame_filename(en->name, sizeof(en->name),
|
||||||
|
av_basename(hls->basename),
|
||||||
hls->number -1);
|
hls->number -1);
|
||||||
|
|
||||||
en->duration = duration;
|
en->duration = duration;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user