libavcodec/ac3enc.c:1600: 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:1579:1: Parameter `avctx->priv_data->lfe_channel`
1577.  * Initialize the encoder.
1578.  */
1579. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
1580. {
1581.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:1588:11: Call
1586.     ac3_common_init();
1587. 
1588.     ret = validate_options(avctx, s);
                ^
1589.     if (ret)
1590.         return ret;

libavcodec/ac3enc.c:1499:1: Parameter `s->lfe_channel`
  1497. 
  1498. 
  1499. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  1500. {
  1501.     int i, ret;

libavcodec/ac3enc.c:1509:11: Call
  1507.                                       "might be incorrect.\n");
  1508.     }
  1509.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  1510.     if (ret) {
  1511.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:1454:1: Parameter `s->lfe_channel`
    1452.  * Set channel information during initialization.
    1453.  */
    1454. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    1455.                                     int64_t *channel_layout)
    1456. {

libavcodec/ac3enc.c:1600:5: Call
1598.     s->frame_size      = s->frame_size_min;
1599. 
1600.     set_bandwidth(s, avctx->cutoff);
          ^
1601. 
1602.     bit_alloc_init(s);

libavcodec/ac3enc.c:1549:1: <Offset trace>
1547.  * default value will be used.
1548.  */
1549. static av_cold void set_bandwidth(AC3EncodeContext *s, int cutoff)
      ^
1550. {
1551.     int ch, bw_code;

libavcodec/ac3enc.c:1549:1: Parameter `s->lfe_channel`
  1547.  * default value will be used.
  1548.  */
  1549. static av_cold void set_bandwidth(AC3EncodeContext *s, int cutoff)
        ^
  1550. {
  1551.     int ch, bw_code;

libavcodec/ac3enc.c:1549:1: <Length trace>
1547.  * default value will be used.
1548.  */
1549. static av_cold void set_bandwidth(AC3EncodeContext *s, int cutoff)
      ^
1550. {
1551.     int ch, bw_code;

libavcodec/ac3enc.c:1549:1: Parameter `s->nb_coefs[*]`
  1547.  * default value will be used.
  1548.  */
  1549. static av_cold void set_bandwidth(AC3EncodeContext *s, int cutoff)
        ^
  1550. {
  1551.     int ch, bw_code;

libavcodec/ac3enc.c:1572: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` 
  1570.     }
  1571.     if (s->lfe_on)
  1572.         s->nb_coefs[s->lfe_channel] = 7; /* LFE channel always has 7 coefs */
                ^
  1573. }
  1574. 
