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
8585 if (!en)
8686 return AVERROR(ENOMEM);
8787
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),
8990 hls->number -1);
9091
9192 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