Message ID | 6e6ca08a-202a-72d5-51fd-75c3644df8d2@maxton.xyz |
---|---|
State | Superseded |
Headers | show |
2018-02-27 9:26 GMT+01:00 Maxton <maxton@maxton.xyz>: > I looked at the code in avcodec/wmaprodec.c and noticed that > the maximum number of channels was set to 8, but I think this > is a mistake as the number of channels should logically be > > XMA_MAX_STREAMS * XMA_MAX_CHANNELS_STREAM Doesn't your explanation indicate you should (move the definition and) change "8" into this calculation? Thank you, Carl Eugen
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 77a49c9..0460fce 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -107,7 +107,7 @@ #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 16 #define XMA_MAX_CHANNELS_STREAM 2 #define WMAPRO_BLOCK_MIN_BITS 6 ///< log2 of min block size