diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-05 12:34:40 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-07 23:59:33 +0100 |
commit | 807763c85e5fce343653e333076b03d12de5dc87 (patch) | |
tree | 21707dd49231e9e208e9cc914ef058b2bc352231 | |
parent | 69fa6c4b73e60ff9fc9d7fc42abce141c61f1c57 (diff) | |
download | mpv-807763c85e5fce343653e333076b03d12de5dc87.tar.bz2 mpv-807763c85e5fce343653e333076b03d12de5dc87.tar.xz |
coreaudio: don't output too many channel descriptions
for #1279 and #1249
-rw-r--r-- | audio/out/ao_coreaudio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 92cfa824e4..fda12391ae 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -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; + } } } |