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.
Fabian Greffrath
3 years ago
1350 | 1350 |
float dec_length = (float)(clock() - begin)/(float)CLOCKS_PER_SEC;
|
1351 | 1351 |
#endif
|
1352 | 1352 |
faad_fprintf(stderr, "Decoding %s took: %5.2f sec. %5.2fx real-time.\n", aacFileName,
|
1353 | |
dec_length, length/dec_length);
|
|
1353 |
dec_length, (dec_length > 0.01) ? (length/dec_length) : 0.);
|
1354 | 1354 |
}
|
1355 | 1355 |
|
1356 | 1356 |
if (aacFileName != NULL)
|
950 | 950 |
|
951 | 951 |
static void mp4info(void)
|
952 | 952 |
{
|
953 | |
fprintf(stderr, "Modification Time:\t\t%s", mp4time(mp4config.mtime));
|
|
953 |
fprintf(stderr, "Modification Time:\t\t%s\n", mp4time(mp4config.mtime));
|
954 | 954 |
fprintf(stderr, "Samplerate:\t\t%d\n", mp4config.samplerate);
|
955 | 955 |
fprintf(stderr, "Total samples:\t\t%d\n", mp4config.samples);
|
956 | 956 |
fprintf(stderr, "Total channels:\t\t%d\n", mp4config.channels);
|