Commit 66f7b486 authored by Luca Barbato's avatar Luca Barbato

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.
parent d8fd06c3
......@@ -85,7 +85,8 @@ static int append_entry(HLSContext *hls, uint64_t duration)
if (!en)
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);
en->duration = duration;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment