diff options
author | Andreas Öman <andreas@lonelycoder.com> | 2008-11-02 21:04:28 +0000 |
---|---|---|
committer | Andreas Öman <andreas@lonelycoder.com> | 2008-11-02 21:04:28 +0000 |
commit | 9d9b9d32e61930681d632b38157af9d5efe39355 (patch) | |
tree | e7fff53174403a3943b7dcc907bd5db2457829c9 /libavcodec/audioconvert.c | |
parent | 7cebed70a807a9e595ed4e9bb7e0bcc049911550 (diff) | |
download | ffmpeg-9d9b9d32e61930681d632b38157af9d5efe39355.tar.gz |
Change multichannel API define prefix from "CHANNEL_" to "CH_".
Originally committed as revision 15768 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/audioconvert.c')
-rw-r--r-- | libavcodec/audioconvert.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c index 9f147a17ba..8e09e4c9af 100644 --- a/libavcodec/audioconvert.c +++ b/libavcodec/audioconvert.c @@ -89,13 +89,13 @@ const char *get_channel_name(int channel_id) int64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name) { switch(nb_channels) { - case 1: return CHANNEL_LAYOUT_MONO; - case 2: return CHANNEL_LAYOUT_STEREO; - case 3: return CHANNEL_LAYOUT_SURROUND; - case 4: return CHANNEL_LAYOUT_QUAD; - case 5: return CHANNEL_LAYOUT_5POINT0; - case 6: return CHANNEL_LAYOUT_5POINT1; - case 8: return CHANNEL_LAYOUT_7POINT1; + case 1: return CH_LAYOUT_MONO; + case 2: return CH_LAYOUT_STEREO; + case 3: return CH_LAYOUT_SURROUND; + case 4: return CH_LAYOUT_QUAD; + case 5: return CH_LAYOUT_5POINT0; + case 6: return CH_LAYOUT_5POINT1; + case 8: return CH_LAYOUT_7POINT1; default: return 0; } } @@ -105,16 +105,16 @@ static const struct { int nb_channels; int64_t layout; } const channel_layout_map[] = { - { "mono", 1, CHANNEL_LAYOUT_MONO }, - { "stereo", 2, CHANNEL_LAYOUT_STEREO }, - { "surround", 3, CHANNEL_LAYOUT_SURROUND }, - { "quad", 4, CHANNEL_LAYOUT_QUAD }, - { "5.0", 5, CHANNEL_LAYOUT_5POINT0 }, - { "5.1", 6, CHANNEL_LAYOUT_5POINT1 }, - { "5.1+downmix", 8, CHANNEL_LAYOUT_5POINT1|CHANNEL_LAYOUT_STEREO_DOWNMIX, }, - { "7.1", 8, CHANNEL_LAYOUT_7POINT1 }, - { "7.1(wide)", 8, CHANNEL_LAYOUT_7POINT1_WIDE }, - { "7.1+downmix", 10, CHANNEL_LAYOUT_7POINT1|CHANNEL_LAYOUT_STEREO_DOWNMIX, }, + { "mono", 1, CH_LAYOUT_MONO }, + { "stereo", 2, CH_LAYOUT_STEREO }, + { "surround", 3, CH_LAYOUT_SURROUND }, + { "quad", 4, CH_LAYOUT_QUAD }, + { "5.0", 5, CH_LAYOUT_5POINT0 }, + { "5.1", 6, CH_LAYOUT_5POINT1 }, + { "5.1+downmix", 8, CH_LAYOUT_5POINT1|CH_LAYOUT_STEREO_DOWNMIX, }, + { "7.1", 8, CH_LAYOUT_7POINT1 }, + { "7.1(wide)", 8, CH_LAYOUT_7POINT1_WIDE }, + { "7.1+downmix", 10, CH_LAYOUT_7POINT1|CH_LAYOUT_STEREO_DOWNMIX, }, { 0 } }; |