libavcodec/ac3enc.c:1840: 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:1811:1: Parameter `avctx->priv_data->lfe_channel`
1809.  * Initialize the encoder.
1810.  */
1811. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
1812. {
1813.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:1820:11: Call
1818.     ff_ac3_common_init();
1819. 
1820.     ret = validate_options(avctx, s);
                ^
1821.     if (ret)
1822.         return ret;

libavcodec/ac3enc.c:1633:1: Parameter `s->lfe_channel`
  1631. 
  1632. 
  1633. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  1634. {
  1635.     int i, ret;

libavcodec/ac3enc.c:1643:11: Call
  1641.                                       "might be incorrect.\n");
  1642.     }
  1643.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  1644.     if (ret) {
  1645.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:1588:1: Parameter `s->lfe_channel`
    1586.  * Set channel information during initialization.
    1587.  */
    1588. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    1589.                                     int64_t *channel_layout)
    1590. {

libavcodec/ac3enc.c:1840:5: Call
1838.     }
1839. 
1840.     set_bandwidth(s);
          ^
1841. 
1842.     rematrixing_init(s);

libavcodec/ac3enc.c:1692:1: <Offset trace>
1690.  * default value will be used.
1691.  */
1692. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
1693. {
1694.     int ch, bw_code;

libavcodec/ac3enc.c:1692:1: Parameter `s->lfe_channel`
  1690.  * default value will be used.
  1691.  */
  1692. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  1693. {
  1694.     int ch, bw_code;

libavcodec/ac3enc.c:1692:1: <Length trace>
1690.  * default value will be used.
1691.  */
1692. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
1693. {
1694.     int ch, bw_code;

libavcodec/ac3enc.c:1692:1: Parameter `s->nb_coefs[*]`
  1690.  * default value will be used.
  1691.  */
  1692. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  1693. {
  1694.     int ch, bw_code;

libavcodec/ac3enc.c:1714: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` 
  1712.     }
  1713.     if (s->lfe_on)
  1714.         s->nb_coefs[s->lfe_channel] = 7; /* LFE channel always has 7 coefs */
                ^
  1715. }
  1716. 
