mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
coreaudio: don't output too many channel descriptions
for #1279 and #1249
This commit is contained in:
parent
b967e94589
commit
254c60e608
@ -370,6 +370,12 @@ static void ca_log_layout(struct ao *ao, AudioChannelLayout *layout)
|
||||
d.mCoordinates[0],
|
||||
d.mCoordinates[1],
|
||||
d.mCoordinates[2]);
|
||||
|
||||
if (i >= 32) {
|
||||
MP_VERBOSE(ao, " detected more than 32 channel descriptions, "
|
||||
"skipping output");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user