From: Tim Walker Date: Wed, 12 Sep 2012 15:09:31 +0000 (+0200) Subject: lavu/audioconvert: add a second low frequency channel. X-Git-Tag: android-x86-4.4-r1~8529^2~614 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8919fee7d259a4f8feb2aac6941ac21915be7b6e;p=android-x86%2Fexternal-ffmpeg.git lavu/audioconvert: add a second low frequency channel. Can be used by DTS-HD, TrueHD and E-AC-3, among others. Signed-off-by: Justin Ruggles --- diff --git a/doc/APIchanges b/doc/APIchanges index 7e1ffd0801..48fe09771d 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2011-04-18 API changes, most recent first: +2012-09-12 - xxxxxxx - lavu 51.41.0 - audioconvert.h + Added AV_CH_LOW_FREQUENCY_2 channel mask value. + 2012-09-04 - xxxxxxx - lavu 51.40.0 - opt.h Reordered the fields in default_val in AVOption, changed which default_val field is used for which AVOptionType. diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c index 09750ff435..113b9d782d 100644 --- a/libavutil/audioconvert.c +++ b/libavutil/audioconvert.c @@ -53,6 +53,7 @@ static const char * const channel_names[] = { [32] = "WR", /* wide right */ [33] = "SDL", /* surround direct left */ [34] = "SDR", /* surround direct right */ + [35] = "LFE2", /* low frequency 2 */ }; static const char *get_channel_name(int channel_id) diff --git a/libavutil/audioconvert.h b/libavutil/audioconvert.h index 7e79097855..73076cba79 100644 --- a/libavutil/audioconvert.h +++ b/libavutil/audioconvert.h @@ -62,6 +62,7 @@ #define AV_CH_WIDE_RIGHT 0x0000000100000000ULL #define AV_CH_SURROUND_DIRECT_LEFT 0x0000000200000000ULL #define AV_CH_SURROUND_DIRECT_RIGHT 0x0000000400000000ULL +#define AV_CH_LOW_FREQUENCY_2 0x0000000800000000ULL /** Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output diff --git a/libavutil/version.h b/libavutil/version.h index 293a65b08f..6342baefb2 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -37,7 +37,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 40 +#define LIBAVUTIL_VERSION_MINOR 41 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \