From 48c2e9d67d36af8aff354b18ab2ddda26abca117 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 26 Oct 2015 15:54:00 +0100 Subject: 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. --- audio/out/ao_lavc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'audio/out') 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; -- cgit v1.2.3