1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

audio: fix bogus audio format comparison

This commit is contained in:
wm4 2013-11-07 22:19:19 +01:00
parent 1b8cd01b1a
commit de577d4e79

View File

@ -43,7 +43,7 @@ enum AVSampleFormat af_to_avformat(int fmt)
if (audio_conversion_map[i].fmt == fmt)
break;
sample_fmt = audio_conversion_map[i].sample_fmt;
if (sample_fmt == AF_FORMAT_UNKNOWN)
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;