[FFmpeg-cvslog] avformat/hlsenc: Add some comments to make the code easier to read
Nicolas Martyanoff
git at videolan.org
Thu Jul 31 00:44:25 CEST 2014
ffmpeg | branch: master | Nicolas Martyanoff <khaelin at gmail.com> | Fri Jul 18 10:57:42 2014 +0200| [53f10e03687c56b7f3b36f7d7c07d9934b53d4ad] | committer: Michael Niedermayer
avformat/hlsenc: Add some comments to make the code easier to read
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=53f10e03687c56b7f3b36f7d7c07d9934b53d4ad
---
libavformat/hlsenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 76a7eef..a1e3f72 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));
More information about the ffmpeg-cvslog
mailing list