diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-02-01 19:42:34 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-02-01 19:42:48 +1100 |
commit | 37a97a5992f22710dfef773279e0922a25ac15de (patch) | |
tree | 1556e7dea26f970c20a9a3bf2cad58f936c89d6f /src | |
parent | 8e89bade87add0e106286dab5206b06541043699 (diff) | |
download | flac-37a97a5992f22710dfef773279e0922a25ac15de.tar.gz |
src/flac/encode.c : Improve message when compression fails.
As suggested by Brian Willoughby this is not an "ERROR" but a "FAILURE".
Also list a couple of possible causes of this failure and remove the
suggestion to contact the developers.
Diffstat (limited to 'src')
-rw-r--r-- | src/flac/encode.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/flac/encode.c b/src/flac/encode.c index 5a6c8295..11c2099f 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -1654,7 +1654,13 @@ int EncoderSession_finish_ok(EncoderSession *e, int info_align_carry, int info_a } if (error_on_compression_fail && e->compression_ratio >= 1.0) { - flac__utils_printf(stderr, 1, "ERROR: Compression failed (ratio %0.3f, should be < 1.0). Please contact the developers.\n", e->compression_ratio); + flac__utils_printf(stderr, 1, + "FAILURE: Compression failed (ratio %0.3f, should be < 1.0).\n" + "This happens for some files for one or more of the following reasons:\n" + " * Recompressing an existing FLAC from a higher to a lower compression setting.\n" + " * Insufficient input data (eg, very short files, < 10000 fames).\n" + " * The audio data is not compressable (eg a full range white noise signal).\n" + , e->compression_ratio); ret = 1; } |