summaryrefslogtreecommitdiffstats
path: root/audio/reorder_ch.h
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-12-03 20:16:17 +0100
committerRudolf Polzer <divverent@xonotic.org>2012-12-03 20:16:17 +0100
commit1085539bde0937dd156566b3dea957f3efbe0b29 (patch)
tree45cf9258bd5b4ff281c83f7a9c11738ecd001c32 /audio/reorder_ch.h
parent54d998d5e7f101312cf26e9fc4d199fa9fed33c2 (diff)
downloadmpv-1085539bde0937dd156566b3dea957f3efbe0b29.tar.bz2
mpv-1085539bde0937dd156566b3dea957f3efbe0b29.tar.xz
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.
Diffstat (limited to 'audio/reorder_ch.h')
-rw-r--r--audio/reorder_ch.h4
1 files changed, 4 insertions, 0 deletions
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 */