aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-01-29 16:34:48 +0100
committerJames Almer <jamrial@gmail.com>2020-02-07 13:36:57 -0300
commitaf1f1e8665414f37bd64c8f6878b808055abb0be (patch)
treed6bc7fe2940af720e2f1d1ef0368c67221569ec1 /libavcodec/ac3enc.h
parent2b61c908b1a17553fa2542d7b3880d6be8618750 (diff)
downloadffmpeg-af1f1e8665414f37bd64c8f6878b808055abb0be.tar.gz
ac3enc: drop a global variable
Log the warning message once per encoder instance instead. Reviewed-by: Kieran Kunhya <kierank@obe.tv> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ac3enc.h')
-rw-r--r--libavcodec/ac3enc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h
index a2442d0e55..1e4a7405bf 100644
--- a/libavcodec/ac3enc.h
+++ b/libavcodec/ac3enc.h
@@ -255,6 +255,8 @@ typedef struct AC3EncodeContext {
uint8_t *ref_bap [AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]; ///< bit allocation pointers (bap)
int ref_bap_set; ///< indicates if ref_bap pointers have been set
+ int warned_alternate_bitstream;
+
/* fixed vs. float function pointers */
void (*mdct_end)(struct AC3EncodeContext *s);
int (*mdct_init)(struct AC3EncodeContext *s);