mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
audio/fmt-conversion.c: remove unknown audio format messages
Same deal as with video/fmt-conversion.c.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user