summaryrefslogtreecommitdiff
path: root/libavcodec/ac3.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-03-30 10:14:48 +0200
committerPaul B Mahol <onemda@gmail.com>2018-03-30 10:14:48 +0200
commit0b86ea03d8415b5a3a6b07f3012a8097bca26ea5 (patch)
treed4d3af3dc2d696066a24b0c9ec9880926b8f2d89 /libavcodec/ac3.h
parent91bb871376730a2394ed0ae1a3fd4295977002d3 (diff)
downloadffmpeg-0b86ea03d8415b5a3a6b07f3012a8097bca26ea5.tar.gz
avcodec/ac3: fix out of array access introduced previously
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/ac3.h')
-rw-r--r--libavcodec/ac3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h
index 5c9c37727e..f8f6a81f45 100644
--- a/libavcodec/ac3.h
+++ b/libavcodec/ac3.h
@@ -28,6 +28,7 @@
#define AVCODEC_AC3_H
#define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */
+#define EAC3_MAX_CHANNELS 16 /**< maximum number of channels in EAC3 */
#define AC3_MAX_CHANNELS 7 /**< maximum number of channels, including coupling channel */
#define CPL_CH 0 /**< coupling channel index */