mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00: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…
Reference in New Issue
Block a user