diff --git a/audio/fmt-conversion.c b/audio/fmt-conversion.c index bb32361ce5..8a61a1c6b7 100644 --- a/audio/fmt-conversion.c +++ b/audio/fmt-conversion.c @@ -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;