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/decode/ad_lavc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'audio/decode') diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index 5f73002d14..b2f29505c2 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -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) { -- cgit v1.2.3