From 1085539bde0937dd156566b3dea957f3efbe0b29 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 3 Dec 2012 20:16:17 +0100 Subject: af_lavcac3enc, encode: support planar formats This fixes operation with current ffmpeg releases. Note that this planarization is slow and should be reverted once proper planar audio support is there in mpv. --- audio/reorder_ch.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'audio/reorder_ch.h') diff --git a/audio/reorder_ch.h b/audio/reorder_ch.h index 44b533988d..66354403da 100644 --- a/audio/reorder_ch.h +++ b/audio/reorder_ch.h @@ -130,4 +130,8 @@ void reorder_channel_nch(void *buf, int samples, int samplesize); +/// Utility function for planar audio conversions +void reorder_to_planar(void *restrict out, const void *restrict in, + size_t size, size_t nchan, size_t nmemb); + #endif /* MPLAYER_REORDER_CH_H */ -- cgit v1.2.3