diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2017-12-04 12:03:37 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-12-04 12:03:37 +0800 |
commit | 071f47649ce39897f18ce034dd428067f29d9b66 (patch) | |
tree | 730b7777a2b4d6325d075e838894c2481adbd89d /libavformat/hlsplaylist.c | |
parent | 31b351ea81d0a7c0d0ed1982dcc6327b7f43b987 (diff) | |
download | ffmpeg-071f47649ce39897f18ce034dd428067f29d9b66.tar.gz |
avformat/hlsplaylist: add int type of API ff_hls_write_file_entry
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsplaylist.c')
-rw-r--r-- | libavformat/hlsplaylist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/hlsplaylist.c b/libavformat/hlsplaylist.c index 235e519a9e..96a8afbe1d 100644 --- a/libavformat/hlsplaylist.c +++ b/libavformat/hlsplaylist.c @@ -82,14 +82,14 @@ void ff_hls_write_init_file(AVIOContext *out, char *filename, avio_printf(out, "\n"); } -void ff_hls_write_file_entry(AVIOContext *out, int insert_discont, +int ff_hls_write_file_entry(AVIOContext *out, int insert_discont, int byterange_mode, double duration, int round_duration, int64_t size, int64_t pos, //Used only if HLS_SINGLE_FILE flag is set char *baseurl, //Ignored if NULL char *filename, double *prog_date_time) { if (!out || !filename) - return; + return AVERROR(EINVAL); if (insert_discont) { avio_printf(out, "#EXT-X-DISCONTINUITY\n"); @@ -128,6 +128,8 @@ void ff_hls_write_file_entry(AVIOContext *out, int insert_discont, if (baseurl) avio_printf(out, "%s", baseurl); avio_printf(out, "%s\n", filename); + + return 0; } void ff_hls_write_end_list (AVIOContext *out) { |