libavcodec/ac3enc.c:1918: error: Buffer Overrun L2
  Offset: [min(-1, `avctx->priv_data->lfe_channel`), max(6, `avctx->priv_data->lfe_channel`)] Size: 6 by call to `set_bandwidth`.

libavcodec/ac3enc.c:1897:1: Parameter `avctx->priv_data->lfe_channel`
1895.  * Initialize the encoder.
1896.  */
1897. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
1898. {
1899.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:1906:11: Call
1904.     ac3_common_init();
1905. 
1906.     ret = validate_options(avctx, s);
                ^
1907.     if (ret)
1908.         return ret;

libavcodec/ac3enc.c:1742:1: Parameter `s->lfe_channel`
  1740. 
  1741. 
  1742. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  1743. {
  1744.     int i, ret;

libavcodec/ac3enc.c:1752:11: Call
  1750.                                       "might be incorrect.\n");
  1751.     }
  1752.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  1753.     if (ret) {
  1754.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:1697:1: Parameter `s->lfe_channel`
    1695.  * Set channel information during initialization.
    1696.  */
    1697. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    1698.                                     int64_t *channel_layout)
    1699. {

libavcodec/ac3enc.c:1918:5: Call
1916.     s->frame_size      = s->frame_size_min;
1917. 
1918.     set_bandwidth(s);
          ^
1919. 
1920.     exponent_init(s);

libavcodec/ac3enc.c:1801:1: <Offset trace>
1799.  * default value will be used.
1800.  */
1801. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
1802. {
1803.     int ch, bw_code;

libavcodec/ac3enc.c:1801:1: Parameter `s->lfe_channel`
  1799.  * default value will be used.
  1800.  */
  1801. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  1802. {
  1803.     int ch, bw_code;

libavcodec/ac3enc.c:1801:1: <Length trace>
1799.  * default value will be used.
1800.  */
1801. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
1802. {
1803.     int ch, bw_code;

libavcodec/ac3enc.c:1801:1: Parameter `s->nb_coefs[*]`
  1799.  * default value will be used.
  1800.  */
  1801. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  1802. {
  1803.     int ch, bw_code;

libavcodec/ac3enc.c:1823:9: Array access: Offset: [min(-1, avctx->priv_data->lfe_channel), max(6, avctx->priv_data->lfe_channel)] Size: 6 by call to `set_bandwidth` 
  1821.     }
  1822.     if (s->lfe_on)
  1823.         s->nb_coefs[s->lfe_channel] = 7; /* LFE channel always has 7 coefs */
                ^
  1824. }
  1825. 
