diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-14 00:47:53 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-14 18:21:19 +0200 |
commit | 4c53c66a21f18b2633bfd4894623f163258b2eee (patch) | |
tree | c30684c918b448bbf5c86d38bf5c53dbcde442a9 /libavformat/mp3enc.c | |
parent | 64bd7f8e4db1742e86c5ed02bd530688b74063e3 (diff) | |
download | ffmpeg-4c53c66a21f18b2633bfd4894623f163258b2eee.tar.gz |
mp3enc: clarify meaning of "Unsupported" messages.
They will only cause us to skip writing the Xing header,
not cause any serious breakage.
Related to trac issue #1027.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r-- | libavformat/mp3enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 22810b50f9..29c0780b90 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -131,14 +131,14 @@ static int 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 -1; } 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 -1; + default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, not writing Xing header.\n"); return -1; } /* dummy MPEG audio header */ |