diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-12-24 00:08:35 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-12-29 17:26:29 +0100 |
commit | 66f7b4862fe9fd1828a6729df5d04a499af227db (patch) | |
tree | 904cd375f50fd8332ddda4d36fc715eda67c744f | |
parent | d8fd06c37de94d78eb37af93177de7c3040cf1f2 (diff) | |
download | ffmpeg-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.c | 3 |
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; |