diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:29:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:12 +0100 |
commit | 60c06fec1e45e1ddb285fe54f1106e1fc8838edd (patch) | |
tree | aad2b74d464e0d0862605c806e60e1169b8ed49d /audio/decode | |
parent | 1974c9b49d7bf09469362ef6ba1214f625ecb40a (diff) | |
download | mpv-60c06fec1e45e1ddb285fe54f1106e1fc8838edd.tar.bz2 mpv-60c06fec1e45e1ddb285fe54f1106e1fc8838edd.tar.xz |
audio/fmt-conversion.c: remove unknown audio format messages
Same deal as with video/fmt-conversion.c.
Diffstat (limited to 'audio/decode')
-rw-r--r-- | audio/decode/ad_lavc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |