diff options
author | wm4 <wm4@nowhere> | 2015-10-26 15:54:00 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-26 15:54:00 +0100 |
commit | 48c2e9d67d36af8aff354b18ab2ddda26abca117 (patch) | |
tree | 09dd86519bbe9c557d19762bff508919086e79a4 /audio/out | |
parent | 0ffaf653a21d0c767abfcf1094f9e57a6c9b5ba4 (diff) | |
download | mpv-48c2e9d67d36af8aff354b18ab2ddda26abca117.tar.bz2 mpv-48c2e9d67d36af8aff354b18ab2ddda26abca117.tar.xz |
audio: use AVFrames with more than 8 channels correctly
Requires messy dealing with the extended_ fields.
Don't bother with af_lavfi and ao_lavc for now. There are probably no
valid use-cases for these.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index 09bf8717a6..332350fd17 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -164,6 +164,9 @@ static int init(struct ao *ao) ao->untimed = true; + if (ao->channels.num > AV_NUM_DATA_POINTERS) + goto fail; + pthread_mutex_unlock(&ao->encode_lavc_ctx->lock); return 0; |