audio: stop "unsupported sample format" spam

It spams these in verbose mode. It's caused by format negotiation code
in af.c. It's for the mpv format to ffmpeg-format case, and that one is
very uninteresting. (The ffmpeg supported audio formats are practically
never extended.)
This commit is contained in:
wm4 2013-11-07 22:34:03 +01:00
parent de577d4e79
commit 052a7d54ab
1 changed files with 1 additions and 6 deletions

View File

@ -38,15 +38,10 @@ static const struct {
enum AVSampleFormat af_to_avformat(int fmt)
{
int i;
enum AVSampleFormat sample_fmt;
for (i = 0; audio_conversion_map[i].fmt; i++)
if (audio_conversion_map[i].fmt == fmt)
break;
sample_fmt = audio_conversion_map[i].sample_fmt;
if (sample_fmt == AV_SAMPLE_FMT_NONE)
mp_msg(MSGT_GLOBAL, MSGL_V, "Unsupported sample format: %s\n",
af_fmt_to_str(fmt));
return sample_fmt;
return audio_conversion_map[i].sample_fmt;
}
int af_from_avformat(enum AVSampleFormat sample_fmt)