Commit e3b2c850 authored by Karthick J's avatar Karthick J Committed by Steven Liu

avformat/dashenc: avformat/dashenc: Fix the EXT-X-TARGETDURATION as per the hls specification

parent 93a0e478
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment