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

libavcodec/ac3enc.c:2967:1: Parameter `avctx->priv_data->lfe_channel`
2965.  * Initialize the encoder.
2966.  */
2967. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
2968. {
2969.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:2978:11: Call
2976.     ff_ac3_common_init();
2977. 
2978.     ret = validate_options(avctx, s);
                ^
2979.     if (ret)
2980.         return ret;

libavcodec/ac3enc.c:2663:1: Parameter `s->lfe_channel`
  2661. 
  2662. 
  2663. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  2664. {
  2665.     int i, ret, max_sr;

libavcodec/ac3enc.c:2673:11: Call
  2671.                                       "might be incorrect.\n");
  2672.     }
  2673.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  2674.     if (ret) {
  2675.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:2618:1: Parameter `s->lfe_channel`
    2616.  * Set channel information during initialization.
    2617.  */
    2618. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    2619.                                     int64_t *channel_layout)
    2620. {

libavcodec/ac3enc.c:2997:5: Call
2995.     }
2996. 
2997.     set_bandwidth(s);
          ^
2998. 
2999.     exponent_init(s);

libavcodec/ac3enc.c:2790:1: <Offset trace>
2788.  * default value will be used.
2789.  */
2790. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2791. {
2792.     int blk, ch;

libavcodec/ac3enc.c:2790:1: Parameter `s->lfe_channel`
  2788.  * default value will be used.
  2789.  */
  2790. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2791. {
  2792.     int blk, ch;

libavcodec/ac3enc.c:2790:1: <Length trace>
2788.  * default value will be used.
2789.  */
2790. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2791. {
2792.     int blk, ch;

libavcodec/ac3enc.c:2790:1: Parameter `s->start_freq[*]`
  2788.  * default value will be used.
  2789.  */
  2790. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2791. {
  2792.     int blk, ch;

libavcodec/ac3enc.c:2813:9: Array access: Offset: [min(-1, avctx->priv_data->lfe_channel), max(8, avctx->priv_data->lfe_channel)] Size: 7 by call to `set_bandwidth` 
  2811.     /* LFE channel always has 7 coefs */
  2812.     if (s->lfe_on) {
  2813.         s->start_freq[s->lfe_channel] = 0;
                ^
  2814.         for (blk = 0; blk < AC3_MAX_BLOCKS; blk++)
  2815.             s->blocks[blk].end_freq[ch] = 7;
