Browse Source

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.
tags/n1.1
Luca Barbato 13 years ago
parent
commit
66f7b4862f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/hlsenc.c

+ 2
- 1
libavformat/hlsenc.c View File

@@ -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;


Loading…
Cancel
Save