1
0
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:
Stefano Pigozzi 2014-12-05 12:34:40 +01:00
parent b967e94589
commit 254c60e608

View File

@ -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;
}
}
}