From 30b68f33aa5f6480b4271820c228438e2e6e79eb Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 8 Apr 2002 12:08:03 +0000 Subject: * encoding of AC3 with more than 2 channels by Takashi Iwai Originally committed as revision 383 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3enc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavcodec/ac3enc.h') diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h index 40cc53aced..6dd0966ec8 100644 --- a/libavcodec/ac3enc.h +++ b/libavcodec/ac3enc.h @@ -1,12 +1,13 @@ #define AC3_FRAME_SIZE (6*256) #define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */ -#define AC3_MAX_CHANNELS 2 /* we handle at most two channels, although - AC3 allows 6 channels */ +#define AC3_MAX_CHANNELS 6 typedef struct AC3EncodeContext { PutBitContext pb; int nb_channels; + int nb_all_channels; + int lfe_channel; int bit_rate; int sample_rate; int bsid; @@ -16,6 +17,7 @@ typedef struct AC3EncodeContext { int frmsizecod; int fscod; /* frequency */ int acmod; + int lfe; int bsmod; short last_samples[AC3_MAX_CHANNELS][256]; int chbwcod[AC3_MAX_CHANNELS]; -- cgit v1.2.3