[FFmpeg-devel] [PATCH]Make CH_LAYOUT_5POINTx_BACK the normal case
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Aug 24 23:35:48 CEST 2011
Hi!
Sorry for this late patch.
AV_CH_LAYOUT_5POINTx_BACK is what every other application expects for 5.0/5.1
when reading a wav file which is where FFmpeg's channel layout comes from, so
this should be the "normal" case, and AV_CH_LAYOUT_5POINTx the exception.
I will apply if nobody objects, Carl Eugen
-------------- next part --------------
diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c
index 6e8649d..61dd6f3 100644
--- a/libavutil/audioconvert.c
+++ b/libavutil/audioconvert.c
@@ -51,10 +51,10 @@ static const struct {
{ "stereo", 2, AV_CH_LAYOUT_STEREO },
{ "4.0", 4, AV_CH_LAYOUT_4POINT0 },
{ "quad", 4, AV_CH_LAYOUT_QUAD },
- { "5.0", 5, AV_CH_LAYOUT_5POINT0 },
- { "5.0(back)", 5, AV_CH_LAYOUT_5POINT0_BACK },
- { "5.1", 6, AV_CH_LAYOUT_5POINT1 },
- { "5.1(back)", 6, AV_CH_LAYOUT_5POINT1_BACK },
+ { "5.0(side)", 5, AV_CH_LAYOUT_5POINT0 },
+ { "5.0", 5, AV_CH_LAYOUT_5POINT0_BACK },
+ { "5.1(side)", 6, AV_CH_LAYOUT_5POINT1 },
+ { "5.1", 6, AV_CH_LAYOUT_5POINT1_BACK },
{ "5.1+downmix", 8, AV_CH_LAYOUT_5POINT1|AV_CH_LAYOUT_STEREO_DOWNMIX, },
{ "7.1", 8, AV_CH_LAYOUT_7POINT1 },
{ "7.1(wide)", 8, AV_CH_LAYOUT_7POINT1_WIDE },
More information about the ffmpeg-devel
mailing list