ref: 25fbe5d61b3745fd0f00d962334232b72e09b644
parent: 00aa7320472c2c7fa55337dc170242ff49b66ee8
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Apr 23 08:25:30 EDT 2020
fix some inconsistencies in the frontend output * No more division by zero in the real-time calculation. * Added a missing newline before the Samplerate line.
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -1351,7 +1351,7 @@
float dec_length = (float)(clock() - begin)/(float)CLOCKS_PER_SEC;
#endif
faad_fprintf(stderr, "Decoding %s took: %5.2f sec. %5.2fx real-time.\n", aacFileName,
- dec_length, length/dec_length);
+ dec_length, (dec_length > 0.01) ? (length/dec_length) : 0.);
}
if (aacFileName != NULL)
--- a/frontend/mp4read.c
+++ b/frontend/mp4read.c
@@ -951,7 +951,7 @@
static void mp4info(void)
{
- fprintf(stderr, "Modification Time:\t\t%s", mp4time(mp4config.mtime));
+ fprintf(stderr, "Modification Time:\t\t%s\n", mp4time(mp4config.mtime));
fprintf(stderr, "Samplerate:\t\t%d\n", mp4config.samplerate);
fprintf(stderr, "Total samples:\t\t%d\n", mp4config.samples);
fprintf(stderr, "Total channels:\t\t%d\n", mp4config.channels);