Ticket #5718: libopus-5.1side.patch

File libopus-5.1side.patch, 433 bytes (added by Elliot Lee, 3 years ago)

Patch libopus encoder to handle 5.1(side) channel layout.

  • libavcodec/vorbis_data.c

    diff --git a/libavcodec/vorbis_data.c b/libavcodec/vorbis_data.c
    index 1ebe146d8f..cb485d1eba 100644
    a b const AVChannelLayout ff_vorbis_ch_layouts[9] = {  
    5454    AV_CHANNEL_LAYOUT_SURROUND,
    5555    AV_CHANNEL_LAYOUT_QUAD,
    5656    AV_CHANNEL_LAYOUT_5POINT0_BACK,
     57    AV_CHANNEL_LAYOUT_5POINT1,
    5758    AV_CHANNEL_LAYOUT_5POINT1_BACK,
    5859    {
    5960        .nb_channels = 7,