shithub: dav1d

Download patch

ref: 3e643b1faa2854a7b685ae28b3f58166e872a3a4
parent: 8c763d216050ca744e2c1bc4784945e37ff8a5df
author: Martin Storsjö <[email protected]>
date: Thu Jun 18 09:05:56 EDT 2020

cli: Get the elapsed time if printing progress, regardless of the fps value

Even if we don't want to throttle decoding to realtime, and
even if the file itself didn't contain a valid fps value, we
may want to call the synchronize function to fetch the current
elapsed decoding time, for displaying the fps value.

--- a/tools/dav1d.c
+++ b/tools/dav1d.c
@@ -245,7 +245,7 @@
             if ((res = output_write(out, &p)) < 0)
                 break;
             n_out++;
-            if (nspf) {
+            if (nspf || !cli_settings.quiet) {
                 synchronize(cli_settings.realtime, cli_settings.realtime_cache,
                             n_out, nspf, tfirst, &elapsed, frametimes);
             }
@@ -282,7 +282,7 @@
             if ((res = output_write(out, &p)) < 0)
                 break;
             n_out++;
-            if (nspf) {
+            if (nspf || !cli_settings.quiet) {
                 synchronize(cli_settings.realtime, cli_settings.realtime_cache,
                             n_out, nspf, tfirst, &elapsed, frametimes);
             }