From 050aa8b9bca6a2c29e1c4c914e05aca49007f1d7 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 11 Mar 2007 02:13:05 +0000 Subject: remove redundancy in AC-3 parser by using common tables from ac3tab.h Originally committed as revision 8318 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3tab.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libavcodec/ac3tab.h') diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h index 928f3c370c..e72984e170 100644 --- a/libavcodec/ac3tab.h +++ b/libavcodec/ac3tab.h @@ -24,6 +24,20 @@ * tables taken directly from AC3 spec. */ +/** + * Possible frame sizes. + * Generated at runtime to match ATSC A/52 Table 5.18 Frame Size Code Table. + */ +uint16_t ff_ac3_frame_sizes[38][3]; + +/** + * Maps audio coding mode (acmod) to number of full-bandwidth channels. + * from ATSC A/52 Table 5.8 Audio Coding Mode + */ +const uint8_t ff_ac3_channels[8] = { + 2, 1, 2, 3, 3, 4, 4, 5 +}; + /* possible frequencies */ const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 }; -- cgit v1.2.3