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
This commit is contained in:
Kevin Mitchell
2015-04-02 22:01:51 -07:00
parent 07671ac57b
commit 46b9df9f9e
9 changed files with 15 additions and 25 deletions

View File

@@ -199,7 +199,7 @@ static struct ao *ao_init(bool probing, struct mpv_global *global,
ao->sstride = af_fmt2bps(ao->format);
ao->num_planes = 1;
if (af_fmt_is_planar(ao->format)) {
if (AF_FORMAT_IS_PLANAR(ao->format)) {
ao->num_planes = ao->channels.num;
} else {
ao->sstride *= ao->channels.num;