audio/fmt-conversion.c: remove unknown audio format messages

Same deal as with video/fmt-conversion.c.
This commit is contained in:
wm4
2013-12-21 18:29:42 +01:00
parent 1974c9b49d
commit 60c06fec1e
4 changed files with 19 additions and 15 deletions

View File

@@ -137,7 +137,10 @@ static int setup_format(struct dec_audio *da)
// Note: invalid parameters are rejected by dec_audio.c
mp_audio_set_format(&da->decoded, af_from_avformat(lavc_context->sample_fmt));
int fmt = lavc_context->sample_fmt;
mp_audio_set_format(&da->decoded, af_from_avformat(fmt));
if (!da->decoded.format)
MP_FATAL(da, "unsupported lavc format %s", av_get_sample_fmt_name(fmt));
da->decoded.rate = lavc_context->sample_rate;
if (!da->decoded.rate && sh_audio->wf) {