From 60c06fec1e45e1ddb285fe54f1106e1fc8838edd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:29:42 +0100 Subject: audio/fmt-conversion.c: remove unknown audio format messages Same deal as with video/fmt-conversion.c. --- audio/out/ao_lavc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio/out/ao_lavc.c') diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index 3e4ba01105..359fbae0fa 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -69,6 +69,11 @@ static void select_format(struct ao *ao, AVCodec *codec) ++sampleformat) { int fmt = af_from_avformat(*sampleformat); + if (!fmt) { + MP_WARN(ao, "unsupported lavc format %s", + av_get_sample_fmt_name(*sampleformat)); + continue; + } int score = af_format_conversion_score(fmt, ao->format); if (score > best_score) { best_score = score; -- cgit v1.2.3