[FFmpeg-devel] [PATCH] s302m: Add Channle Layout for 6 channels

Thierry Foucu tfoucu at gmail.com
Fri Apr 6 06:43:18 CEST 2012


---
 libavcodec/s302m.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index 4a17fa1..a6f207c 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -74,6 +74,9 @@ static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf,
         case 4:
             avctx->channel_layout = AV_CH_LAYOUT_QUAD;
             break;
+        case 6:
+            avctx->channel_layout = AV_CH_LAYOUT_5POINT1_BACK;
+            break;
         case 8:
             avctx->channel_layout = AV_CH_LAYOUT_5POINT1_BACK | AV_CH_LAYOUT_STEREO_DOWNMIX;
     }
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list