From 052a7d54ab4efbf9743767ea7aae95c98f5b5379 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2013 22:34:03 +0100 Subject: [PATCH] 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.) --- audio/fmt-conversion.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/audio/fmt-conversion.c b/audio/fmt-conversion.c index 8a61a1c6b7..94f1fbd1f3 100644 --- a/audio/fmt-conversion.c +++ b/audio/fmt-conversion.c @@ -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)