avcodec/wmaprodec: support decoding up to 16 channels of xma
authorMaxton <maxton@maxton.xyz>
Tue, 27 Feb 2018 09:43:52 +0000 (04:43 -0500)
committerPaul B Mahol <onemda@gmail.com>
Thu, 1 Mar 2018 19:01:53 +0000 (20:01 +0100)
Signed-off by: Maxton <maxton@maxton.xyz>

libavcodec/wmaprodec.c

index 77a49c9..9439bfa 100644 (file)
 #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