]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vorbis_data.c
Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend
[ffmpeg] / libavcodec / vorbis_data.c
index d9e3594ae8cc493d6066c6d9e7d6956f6e0c7ed7..2df8566631885f6a8adc9acf4d36ff44789b0029 100644 (file)
 #include "dsputil.h"
 #include "vorbis.h"
 
-const uint8_t ff_vorbis_channel_layout_offsets[6][6] = {
+const uint8_t ff_vorbis_channel_layout_offsets[8][8] = {
     { 0, },
     { 0, 1, },
     { 0, 2, 1, },
     { 0, 1, 2, 3, },
     { 0, 2, 1, 3, 4, },
-    { 0, 2, 1, 5, 3, 4, }
+    { 0, 2, 1, 5, 3, 4, },
+    { 0, 2, 1, 6, 5, 3, 4, },
+    { 0, 2, 1, 7, 5, 6, 3, 4},
 };
 
-const int64_t ff_vorbis_channel_layouts[7] = {
+const int64_t ff_vorbis_channel_layouts[9] = {
     CH_LAYOUT_MONO,
     CH_LAYOUT_STEREO,
     CH_LAYOUT_SURROUND,
     CH_LAYOUT_QUAD,
     CH_LAYOUT_5POINT0_BACK,
     CH_LAYOUT_5POINT1_BACK,
+    CH_LAYOUT_5POINT1|CH_BACK_CENTER,
+    CH_LAYOUT_7POINT1,
     0
 };