[FFmpeg-devel] [PATCH] dashenc: more accurate time values in playlist.mpd

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Mar 5 16:37:43 EET 2020


Am Do., 5. März 2020 um 11:08 Uhr schrieb Alfred E. Heggestad
<alfred.heggestad at gmail.com>:

> -        int64_t update_period = c->last_duration / AV_TIME_BASE;
> +        double update_period = (double)c->last_duration / AV_TIME_BASE;

Can't you instead do int64 update_period = last_duration * 1000 / AV_TIME_BASE
to avoid using doubles that will potentially break automatic testing?

Carl Eugen


More information about the ffmpeg-devel mailing list