[FFmpeg-devel] [PATCH] audioconvert: define unique strings for AV_CH_LAYOUT_5POINT{0, 1}_BACK

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed Jul 27 19:02:57 CEST 2011


Previously the string for AV_CH_LAYOUT_5POINT{0,1}_BACK was the same
of the string for AV_CH_LAYOUT_5POINT{0,1}_BACK.

This is required for distinguishing between the two channel layouts
starting from the channel layout description.
---
 libavutil/audioconvert.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c
index 60743de..6e8649d 100644
--- a/libavutil/audioconvert.c
+++ b/libavutil/audioconvert.c
@@ -52,9 +52,9 @@ static const struct {
     { "4.0",         4,  AV_CH_LAYOUT_4POINT0 },
     { "quad",        4,  AV_CH_LAYOUT_QUAD },
     { "5.0",         5,  AV_CH_LAYOUT_5POINT0 },
-    { "5.0",         5,  AV_CH_LAYOUT_5POINT0_BACK },
+    { "5.0(back)",   5,  AV_CH_LAYOUT_5POINT0_BACK },
     { "5.1",         6,  AV_CH_LAYOUT_5POINT1 },
-    { "5.1",         6,  AV_CH_LAYOUT_5POINT1_BACK },
+    { "5.1(back)",   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 },
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list