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:
Luca Barbato 2012-12-24 00:08:35 +01:00
parent d8fd06c37d
commit 66f7b4862f

View File

@ -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;