diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-12-25 09:14:59 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-12-29 17:26:29 +0100 |
commit | ae85d6c9c0dcc71dd18c2afb5d15e8b033d67646 (patch) | |
tree | d37ae6dfb2631a60bf8b8a17a3c30d22f7c19364 | |
parent | 6dd93ee6f1b050ad7c4b247899e83efa293ee405 (diff) | |
download | ffmpeg-ae85d6c9c0dcc71dd18c2afb5d15e8b033d67646.tar.gz |
hlsenc: use the segment filename in the playlist entry
Avoid calling av_get_frame_filename twice, once to generate the
segment filename and once to generate the playlist.
-rw-r--r-- | libavformat/hlsenc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index e039687d1e..7abb46d366 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -85,9 +85,7 @@ static int append_entry(HLSContext *hls, uint64_t duration) if (!en) return AVERROR(ENOMEM); - av_get_frame_filename(en->name, sizeof(en->name), - av_basename(hls->basename), - hls->number -1); + av_strlcpy(en->name, av_basename(hls->avf->filename), sizeof(en->name)); en->duration = duration; en->next = NULL; |