Mercurial > libavcodec.hg
diff vorbis_data.c @ 11977:032a8dc03ced libavcodec
Fix libvorbis encoding with more than 2 channels
Patch by James Darnley, james dot darnley at gmail
author | mstorsjo |
---|---|
date | Sun, 27 Jun 2010 09:25:05 +0000 |
parents | 98970e51365a |
children | 8c82dfce2f24 |
line wrap: on
line diff
--- a/vorbis_data.c Sun Jun 27 02:52:43 2010 +0000 +++ b/vorbis_data.c Sun Jun 27 09:25:05 2010 +0000 @@ -32,6 +32,17 @@ { 0, 2, 1, 7, 5, 6, 3, 4}, }; +const uint8_t ff_vorbis_encoding_channel_layout_offsets[8][8] = { + { 0, }, + { 0, 1, }, + { 0, 2, 1, }, + { 0, 1, 2, 3, }, + { 0, 2, 1, 3, 4, }, + { 0, 2, 1, 4, 5, 3, }, + { 0, 2, 1, 5, 6, 4, 3, }, + { 0, 2, 1, 6, 7, 4, 5, 3 } +}; + const int64_t ff_vorbis_channel_layouts[9] = { CH_LAYOUT_MONO, CH_LAYOUT_STEREO,