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];
|
Segment *seg = os->segments[i];
|
||||||
double duration = (double) seg->duration / timescale;
|
double duration = (double) seg->duration / timescale;
|
||||||
if (target_duration <= duration)
|
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,
|
ff_hls_write_playlist_header(out_hls, 6, -1, target_duration,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user