audio: fix bogus audio format comparison

This commit is contained in:
wm4 2013-11-07 22:19:19 +01:00
parent 1b8cd01b1a
commit de577d4e79
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ enum AVSampleFormat af_to_avformat(int fmt)
if (audio_conversion_map[i].fmt == fmt) if (audio_conversion_map[i].fmt == fmt)
break; break;
sample_fmt = audio_conversion_map[i].sample_fmt; 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", mp_msg(MSGT_GLOBAL, MSGL_V, "Unsupported sample format: %s\n",
af_fmt_to_str(fmt)); af_fmt_to_str(fmt));
return sample_fmt; return sample_fmt;