mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
audio: stop "unsupported sample format" spam
It spams these in verbose mode. It's caused by format negotiation code in af.c. It's for the mpv format to ffmpeg-format case, and that one is very uninteresting. (The ffmpeg supported audio formats are practically never extended.)
This commit is contained in:
@@ -38,15 +38,10 @@ static const struct {
|
|||||||
enum AVSampleFormat af_to_avformat(int fmt)
|
enum AVSampleFormat af_to_avformat(int fmt)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
enum AVSampleFormat sample_fmt;
|
|
||||||
for (i = 0; audio_conversion_map[i].fmt; i++)
|
for (i = 0; audio_conversion_map[i].fmt; i++)
|
||||||
if (audio_conversion_map[i].fmt == fmt)
|
if (audio_conversion_map[i].fmt == fmt)
|
||||||
break;
|
break;
|
||||||
sample_fmt = audio_conversion_map[i].sample_fmt;
|
return audio_conversion_map[i].sample_fmt;
|
||||||
if (sample_fmt == AV_SAMPLE_FMT_NONE)
|
|
||||||
mp_msg(MSGT_GLOBAL, MSGL_V, "Unsupported sample format: %s\n",
|
|
||||||
af_fmt_to_str(fmt));
|
|
||||||
return sample_fmt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int af_from_avformat(enum AVSampleFormat sample_fmt)
|
int af_from_avformat(enum AVSampleFormat sample_fmt)
|
||||||
|
|||||||
Reference in New Issue
Block a user