From 46b9df9f9e1eec5cdaa03ab842b34cf1f2ad9ece Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Thu, 2 Apr 2015 22:01:51 -0700 Subject: audio: make all format query shortcuts macros af_fmt_is_float and af_fmt_is_planar were previously inconsistent with AF_FORAMT_IS_SPECIAL/AF_FORMAT_IS_IEC61937 --- audio/audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/audio.c') diff --git a/audio/audio.c b/audio/audio.c index e5df25a6ad..ea0b6203e2 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -35,7 +35,7 @@ static void update_redundant_info(struct mp_audio *mpa) mp_chmap_is_valid(&mpa->channels)); mpa->nch = mpa->channels.num; mpa->bps = af_fmt2bps(mpa->format); - if (af_fmt_is_planar(mpa->format)) { + if (AF_FORMAT_IS_PLANAR(mpa->format)) { mpa->spf = 1; mpa->num_planes = mpa->nch; mpa->sstride = mpa->bps; @@ -101,7 +101,7 @@ char *mp_audio_config_to_str_buf(char *buf, size_t buf_sz, struct mp_audio *mpa) void mp_audio_force_interleaved_format(struct mp_audio *mpa) { - if (af_fmt_is_planar(mpa->format)) + if (AF_FORMAT_IS_PLANAR(mpa->format)) mp_audio_set_format(mpa, af_fmt_from_planar(mpa->format)); } -- cgit v1.2.3