summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorNicolas Martyanoff <khaelin@gmail.com>2014-07-18 10:57:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-31 00:04:05 +0200
commit53f10e03687c56b7f3b36f7d7c07d9934b53d4ad (patch)
tree08ec8f47a2d8c86821c492cd29e7ffee3860f0fa /libavformat/hlsenc.c
parenta99de9ca2ccbe5f70f887982a909f95820cd1cbf (diff)
avformat/hlsenc: Add some comments to make the code easier to read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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));