diff options
Diffstat (limited to 'audio/out/ao_lavc.c')
-rw-r--r-- | audio/out/ao_lavc.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |