mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user