mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 10:51:38 +00:00
avformat/dashenc: avformat/dashenc: Fix the EXT-X-TARGETDURATION as per the hls specification
This commit is contained in:
parent
93a0e47876
commit
e3b2c8502b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user