diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-09-09 22:39:40 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-15 20:25:15 +0400 |
commit | 6365e4db79cc1a8c2c153e73828e922962d1086e (patch) | |
tree | 917a52e6fb33c8b4f1beff073c843f54171c65a9 /libavformat/mp3enc.c | |
parent | 3b4bb19e63b41a0a542ba3ef254443b2e76a6a3e (diff) |
mp3enc: downgrade some errors in writing Xing frame to warnings
Also clarify the meaning of the log message.
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r-- | libavformat/mp3enc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index fac39d9efd..602071cf05 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -110,14 +110,17 @@ static void mp3_write_xing(AVFormatContext *s) break; } if (i == FF_ARRAY_ELEMS(avpriv_mpa_freq_tab)) { - av_log(s, AV_LOG_ERROR, "Unsupported sample rate.\n"); + av_log(s, AV_LOG_WARNING, "Unsupported sample rate, not writing Xing " + "header.\n"); return; } switch (codec->channels) { case 1: channels = MPA_MONO; break; case 2: channels = MPA_STEREO; break; - default: av_log(s, AV_LOG_ERROR, "Unsupported number of channels.\n"); return; + default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, " + "not writing Xing header.\n"); + return; } /* dummy MPEG audio header */ |