From 53f10e03687c56b7f3b36f7d7c07d9934b53d4ad Mon Sep 17 00:00:00 2001 From: Nicolas Martyanoff Date: Fri, 18 Jul 2014 10:57:42 +0200 Subject: [PATCH] avformat/hlsenc: Add some comments to make the code easier to read Signed-off-by: Michael Niedermayer --- libavformat/hlsenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));