audio: fix bogus audio format comparison

This commit is contained in:
wm4 committed 2013-11-07 23:59:38 +01:00
1 parent 96532916fe
commit 0fed032ca0
1 file changed
+1 -1
+1 -1
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_fmt2str_short(fmt));
return sample_fmt;