[FFmpeg-devel] [PATCH]Add 7.1 wide back channel layout name

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jan 21 04:35:29 CET 2013


Hi!

Currently, typical 8 channel aac files are shown as "8 channels 
(FL+FR+FC+LFE+BL+BR+FLC+FRC)" instead of "7.1(wide)", this is a regression 
since 0.11.

Attached patch intends to fix this, please comment.

I am not completely convinced that "7.1(wide-side)" exists in the wild.

Carl Eugen
-------------- next part --------------
diff --git a/libavutil/channel_layout.c b/libavutil/channel_layout.c
index ef6bad7..e582760 100644
--- a/libavutil/channel_layout.c
+++ b/libavutil/channel_layout.c
@@ -97,7 +97,8 @@ static const struct {
     { "7.0",         7,  AV_CH_LAYOUT_7POINT0 },
     { "7.0(front)",  7,  AV_CH_LAYOUT_7POINT0_FRONT },
     { "7.1",         8,  AV_CH_LAYOUT_7POINT1 },
-    { "7.1(wide)",   8,  AV_CH_LAYOUT_7POINT1_WIDE },
+    { "7.1(wide)",   8,  AV_CH_LAYOUT_7POINT1_WIDE_BACK },
+    { "7.1(wide-side)",   8,  AV_CH_LAYOUT_7POINT1_WIDE },
     { "octagonal",   8,  AV_CH_LAYOUT_OCTAGONAL },
     { "downmix",     2,  AV_CH_LAYOUT_STEREO_DOWNMIX, },
 };


More information about the ffmpeg-devel mailing list