libavcodec/ac3enc.c:1927: 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:1898:1: Parameter `avctx->priv_data->lfe_channel`
1896.  * Initialize the encoder.
1897.  */
1898. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
1899. {
1900.     AC3EncodeContext *s = avctx->priv_data;

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

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

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

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

libavcodec/ac3enc.c:1927:5: Call
1925.     }
1926. 
1927.     set_bandwidth(s);
          ^
1928. 
1929.     exponent_init(s);

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

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

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

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

libavcodec/ac3enc.c:1824: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` 
  1822.     }
  1823.     if (s->lfe_on)
  1824.         s->nb_coefs[s->lfe_channel] = 7; /* LFE channel always has 7 coefs */
                ^
  1825. }
  1826. 
