summaryrefslogtreecommitdiff
path: root/libavcodec/ac3tab.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-20 04:30:30 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-20 14:46:25 +0100
commitd0d96674ec647a6b6b08bbf339e6cb995c780e6c (patch)
treed5bab7317156602c9ae7876019fe66e21785a163 /libavcodec/ac3tab.h
parent89fe1935b18621af06587c76bcde6adcdc8f2249 (diff)
downloadffmpeg-d0d96674ec647a6b6b08bbf339e6cb995c780e6c.tar.gz
avcodec/ac3tab: Move ff_ac3_enc_channel_map to its only user
and make it static. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/ac3tab.h')
-rw-r--r--libavcodec/ac3tab.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h
index a0036a301b..f41f7b6da0 100644
--- a/libavcodec/ac3tab.h
+++ b/libavcodec/ac3tab.h
@@ -31,7 +31,6 @@
extern const uint16_t ff_ac3_frame_size_tab[38][3];
extern const uint8_t ff_ac3_channels_tab[8];
extern av_export_avcodec const uint16_t avpriv_ac3_channel_layout_tab[8];
-extern const uint8_t ff_ac3_enc_channel_map[8][2][6];
extern const uint8_t ff_ac3_dec_channel_map[8][2][6];
extern const int ff_ac3_sample_rate_tab[];
extern const uint16_t ff_ac3_bitrate_tab[19];
@@ -67,4 +66,12 @@ enum CustomChannelMapLocation{
AC3_CHMAP_LFE = 1<<(15-15)
};
+#define COMMON_CHANNEL_MAP \
+ { { 0, 1, }, { 0, 1, 2, } },\
+ { { 0, }, { 0, 1, } },\
+ { { 0, 1, }, { 0, 1, 2, } },\
+ { { 0, 2, 1, }, { 0, 2, 1, 3, } },\
+ { { 0, 1, 2, }, { 0, 1, 3, 2, } },\
+ { { 0, 2, 1, 3, }, { 0, 2, 1, 4, 3, } },
+
#endif /* AVCODEC_AC3TAB_H */