From 63e8d9760f23a4edf81e9ae58c4f6d3baa6ff4dd Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 21 Nov 2010 20:06:22 +0000 Subject: Use the new libavcore audio channel API. This also allows to remove a linking dependency of libavfilter on libavcodec. Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3tab.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'libavcodec/ac3tab.c') diff --git a/libavcodec/ac3tab.c b/libavcodec/ac3tab.c index 76f6245ba0..2a90f4ace5 100644 --- a/libavcodec/ac3tab.c +++ b/libavcodec/ac3tab.c @@ -24,6 +24,7 @@ * tables taken directly from the AC-3 spec. */ +#include "libavcore/audioconvert.h" #include "avcodec.h" #include "ac3tab.h" @@ -84,14 +85,14 @@ const uint8_t ff_ac3_channels_tab[8] = { * Map audio coding mode (acmod) to channel layout mask. */ const uint16_t ff_ac3_channel_layout_tab[8] = { - CH_LAYOUT_STEREO, - CH_LAYOUT_MONO, - CH_LAYOUT_STEREO, - CH_LAYOUT_SURROUND, - CH_LAYOUT_2_1, - CH_LAYOUT_4POINT0, - CH_LAYOUT_2_2, - CH_LAYOUT_5POINT0 + AV_CH_LAYOUT_STEREO, + AV_CH_LAYOUT_MONO, + AV_CH_LAYOUT_STEREO, + AV_CH_LAYOUT_SURROUND, + AV_CH_LAYOUT_2_1, + AV_CH_LAYOUT_4POINT0, + AV_CH_LAYOUT_2_2, + AV_CH_LAYOUT_5POINT0 }; #define COMMON_CHANNEL_MAP \ -- cgit v1.2.3