History

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.

Luca Barbato committed 13 years ago

Commit 66f7b481 parent d8fd06c1 file · +2 −1Browse files

Unified · Split

libavformat/hlsenc.c+2−1
@@ -85,7 +85,8 @@ static int append_entry(HLSContext *hls, uint64_t duration) · 84 unmodified lines
85 if (!en)85 if (!en)
86 return AVERROR(ENOMEM);86 return AVERROR(ENOMEM);
87 87
88 av_get_frame_filename(en->name, sizeof(en->name), hls->basename,88 av_get_frame_filename(en->name, sizeof(en->name),
89 av_basename(hls->basename),
89 hls->number -1);90 hls->number -1);
90 91
91 en->duration = duration;92 en->duration = duration;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t