summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 76a7eef012..a1e3f7234c 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -33,7 +33,7 @@
typedef struct ListEntry {
char name[1024];
- double duration;
+ double duration; /* in seconds */
struct ListEntry *next;
} ListEntry;
@@ -85,6 +85,7 @@ static int hls_mux_init(AVFormatContext *s)
return 0;
}
+/* Create a new segment and append it to the segment list */
static int append_entry(HLSContext *hls, double duration)
{
ListEntry *en = av_malloc(sizeof(*en));