summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-26 15:54:00 +0100
committerwm4 <wm4@nowhere>2015-10-26 15:54:00 +0100
commit48c2e9d67d36af8aff354b18ab2ddda26abca117 (patch)
tree09dd86519bbe9c557d19762bff508919086e79a4 /audio/out/ao_lavc.c
parent0ffaf653a21d0c767abfcf1094f9e57a6c9b5ba4 (diff)
downloadmpv-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/ao_lavc.c')
-rw-r--r--audio/out/ao_lavc.c3
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;