Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-06-18 13:05:56 +0300
committerMartin Storsjö <martin@martin.st>2020-06-18 14:25:35 +0300
commit3e643b1faa2854a7b685ae28b3f58166e872a3a4 (patch)
treeaa76f6856ef0d3c7789af524fb0bcd35acc77bf6 /tools
parent8c763d216050ca744e2c1bc4784945e37ff8a5df (diff)
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.
Diffstat (limited to 'tools')
-rw-r--r--tools/dav1d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dav1d.c b/tools/dav1d.c
index 97c7801..129375a 100644
--- a/tools/dav1d.c
+++ b/tools/dav1d.c
@@ -245,7 +245,7 @@ int main(const int argc, char *const *const argv) {
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 @@ int main(const int argc, char *const *const argv) {
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);
}