[FFmpeg-cvslog] hlsenc: use the segment filename in the playlist entry
Luca Barbato
git at videolan.org
Sun Dec 30 14:08:53 CET 2012
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Dec 25 09:14:59 2012 +0100| [ae85d6c9c0dcc71dd18c2afb5d15e8b033d67646] | committer: Luca Barbato
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae85d6c9c0dcc71dd18c2afb5d15e8b033d67646
---
libavformat/hlsenc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index e039687..7abb46d 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;
More information about the ffmpeg-cvslog
mailing list