[FFmpeg-cvslog] avcodec/wmaprodec: support decoding up to 16 channels of xma

Maxton git at videolan.org
Thu Mar 1 21:14:25 EET 2018


ffmpeg | branch: master | Maxton <maxton at maxton.xyz> | Tue Feb 27 04:43:52 2018 -0500| [1be4c8579024bd44265ce2f63c6a090aa1b21bc4] | committer: Paul B Mahol

avcodec/wmaprodec: support decoding up to 16 channels of xma

Signed-off by: Maxton <maxton at maxton.xyz>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1be4c8579024bd44265ce2f63c6a090aa1b21bc4
---

 libavcodec/wmaprodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 77a49c9db8..9439bfa771 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -107,8 +107,8 @@
 #define MAX_BANDS      29                                    ///< max number of scale factor bands
 #define MAX_FRAMESIZE  32768                                 ///< maximum compressed frame size
 #define XMA_MAX_STREAMS         8
-#define XMA_MAX_CHANNELS        8
 #define XMA_MAX_CHANNELS_STREAM 2
+#define XMA_MAX_CHANNELS        (XMA_MAX_STREAMS * XMA_MAX_CHANNELS_STREAM)
 
 #define WMAPRO_BLOCK_MIN_BITS  6                                           ///< log2 of min block size
 #define WMAPRO_BLOCK_MAX_BITS 13                                           ///< log2 of max block size



More information about the ffmpeg-cvslog mailing list