summaryrefslogtreecommitdiffstats
path: root/audio/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audio.c')
-rw-r--r--audio/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/audio.c b/audio/audio.c
index c4ffc233a1..f84d6054bc 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -34,8 +34,8 @@ static void update_redundant_info(struct mp_audio *mpa)
assert(mp_chmap_is_empty(&mpa->channels) ||
mp_chmap_is_valid(&mpa->channels));
mpa->nch = mpa->channels.num;
- mpa->bps = af_fmt2bps(mpa->format);
- if (AF_FORMAT_IS_PLANAR(mpa->format)) {
+ mpa->bps = af_fmt_to_bytes(mpa->format);
+ if (af_fmt_is_planar(mpa->format)) {
mpa->spf = 1;
mpa->num_planes = mpa->nch;
mpa->sstride = mpa->bps;
@@ -105,7 +105,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_FORMAT_IS_PLANAR(mpa->format))
+ if (af_fmt_is_planar(mpa->format))
mp_audio_set_format(mpa, af_fmt_from_planar(mpa->format));
}