Skip to content

Commit

Permalink
Added simplified entries for channel counts greater than 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Ahpee committed Feb 17, 2016
1 parent 2ba8cf7 commit 9e3bdd1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion av/audio/layout.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cdef AudioLayout get_audio_layout(int channels, uint64_t c_layout):


# These are the defaults given by FFmpeg; Libav is different.
cdef uint64_t default_layouts[9]
cdef uint64_t default_layouts[17]
default_layouts[0] = 0
default_layouts[1] = lib.AV_CH_LAYOUT_MONO
default_layouts[2] = lib.AV_CH_LAYOUT_STEREO
Expand All @@ -25,6 +25,14 @@ default_layouts[5] = lib.AV_CH_LAYOUT_5POINT0_BACK
default_layouts[6] = lib.AV_CH_LAYOUT_5POINT1_BACK
default_layouts[7] = lib.AV_CH_LAYOUT_6POINT1
default_layouts[8] = lib.AV_CH_LAYOUT_7POINT1
default_layouts[9] = 0x01FF
default_layouts[10] = 0x03FF
default_layouts[11] = 0x07FF
default_layouts[12] = 0x0FFF
default_layouts[13] = 0x1FFF
default_layouts[14] = 0x3FFF
default_layouts[15] = 0x7FFF
default_layouts[16] = 0xFFFF


# These are the descriptions as given by FFmpeg; Libav does not have them.
Expand Down

0 comments on commit 9e3bdd1

Please sign in to comment.