avformat/dashenc: Fix comparing double with 0

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/373/head
Limin Wang 3 years ago
parent 8dc8c01d6c
commit f05559554c
  1. 2
      libavformat/dashenc.c

@ -551,7 +551,7 @@ static void write_hls_media_playlist(OutputStream *os, AVFormatContext *s,
for (i = start_index; i < os->nb_segments; i++) {
Segment *seg = os->segments[i];
if (prog_date_time == 0) {
if (fabs(prog_date_time) < 1e-7) {
if (os->nb_segments == 1)
prog_date_time = c->start_time_s;
else

Loading…
Cancel
Save