aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/adx.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-05 14:46:39 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-05 23:21:39 +0200
commit39f6d9c5c1272da15fcc6ca9186ce40661326e84 (patch)
tree61762c4e6eb92fc74420b7e986be3a5d821e8576 /libavcodec/adx.h
parentfdd123de1307cc40c807ddd07deef034fb721046 (diff)
downloadffmpeg-39f6d9c5c1272da15fcc6ca9186ce40661326e84.tar.gz
avcodec/adxdec: add support for 6 channels
Diffstat (limited to 'libavcodec/adx.h')
-rw-r--r--libavcodec/adx.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/adx.h b/libavcodec/adx.h
index 8d5e0869ae..60ce07ad61 100644
--- a/libavcodec/adx.h
+++ b/libavcodec/adx.h
@@ -35,9 +35,11 @@ typedef struct ADXChannelState {
int s1,s2;
} ADXChannelState;
+#define MAX_CHANNELS 6
+
typedef struct ADXContext {
int channels;
- ADXChannelState prev[2];
+ ADXChannelState prev[MAX_CHANNELS];
int header_parsed;
int eof;
int cutoff;