Commit 4c53c66a authored by Reimar Döffinger's avatar Reimar Döffinger

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: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 64bd7f8e
...@@ -131,14 +131,14 @@ static int mp3_write_xing(AVFormatContext *s) ...@@ -131,14 +131,14 @@ static int mp3_write_xing(AVFormatContext *s)
break; break;
} }
if (i == FF_ARRAY_ELEMS(avpriv_mpa_freq_tab)) { 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; return -1;
} }
switch (codec->channels) { switch (codec->channels) {
case 1: channels = MPA_MONO; break; case 1: channels = MPA_MONO; break;
case 2: channels = MPA_STEREO; 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 */ /* dummy MPEG audio header */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment