summaryrefslogtreecommitdiffstats
path: root/audio/audio.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-04-02 22:01:51 -0700
committerKevin Mitchell <kevmitch@gmail.com>2015-04-03 15:40:01 -0700
commit46b9df9f9e1eec5cdaa03ab842b34cf1f2ad9ece (patch)
treeeae7a659723e84dc6382cc4a011aa1809342c97c /audio/audio.c
parent07671ac57b41710201e9a0f22b8a8d0febad1c37 (diff)
downloadmpv-46b9df9f9e1eec5cdaa03ab842b34cf1f2ad9ece.tar.bz2
mpv-46b9df9f9e1eec5cdaa03ab842b34cf1f2ad9ece.tar.xz
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
Diffstat (limited to 'audio/audio.c')
-rw-r--r--audio/audio.c4
1 files changed, 2 insertions, 2 deletions
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));
}