aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-12-24 00:08:35 +0100
committerLuca Barbato <lu_zero@gentoo.org>2012-12-29 17:26:29 +0100
commit66f7b4862fe9fd1828a6729df5d04a499af227db (patch)
tree904cd375f50fd8332ddda4d36fc715eda67c744f
parentd8fd06c37de94d78eb37af93177de7c3040cf1f2 (diff)
downloadffmpeg-66f7b4862fe9fd1828a6729df5d04a499af227db.tar.gz
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.
-rw-r--r--libavformat/hlsenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index eade740f07..418c87d2cc 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;