summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2017-12-22 07:44:51 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-22 07:44:51 +0800
commite3b2c8502b33c180e0f053ac2ef32ee782224c2e (patch)
tree175cd1e3616aa7d563d8525434451be8ce0baeaf /libavformat
parent93a0e478768e9bafc44b8956b94c27fe8e3486f3 (diff)
avformat/dashenc: avformat/dashenc: Fix the EXT-X-TARGETDURATION as per the hls specification
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 5687530f2d..5368a2334c 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -358,7 +358,7 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext
Segment *seg = os->segments[i];
double duration = (double) seg->duration / timescale;
if (target_duration <= duration)
- target_duration = hls_get_int_from_double(duration);
+ target_duration = lrint(duration);
}
ff_hls_write_playlist_header(out_hls, 6, -1, target_duration,