libavcodec/ac3enc.c:2742: 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:2706:1: Parameter `avctx->priv_data->lfe_channel`
2704.  * Initialize the encoder.
2705.  */
2706. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
2707. {
2708.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:2717:11: Call
2715.     ff_ac3_common_init();
2716. 
2717.     ret = validate_options(avctx, s);
                ^
2718.     if (ret)
2719.         return ret;

libavcodec/ac3enc.c:2403:1: Parameter `s->lfe_channel`
  2401. 
  2402. 
  2403. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  2404. {
  2405.     int i, ret, max_sr;

libavcodec/ac3enc.c:2413:11: Call
  2411.                                       "might be incorrect.\n");
  2412.     }
  2413.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  2414.     if (ret) {
  2415.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:2358:1: Parameter `s->lfe_channel`
    2356.  * Set channel information during initialization.
    2357.  */
    2358. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    2359.                                     int64_t *channel_layout)
    2360. {

libavcodec/ac3enc.c:2742:5: Call
2740.         s->output_frame_header = ac3_output_frame_header;
2741. 
2742.     set_bandwidth(s);
          ^
2743. 
2744.     exponent_init(s);

libavcodec/ac3enc.c:2530:1: <Offset trace>
2528.  * default value will be used.
2529.  */
2530. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2531. {
2532.     int blk, ch;

libavcodec/ac3enc.c:2530:1: Parameter `s->lfe_channel`
  2528.  * default value will be used.
  2529.  */
  2530. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2531. {
  2532.     int blk, ch;

libavcodec/ac3enc.c:2530:1: <Length trace>
2528.  * default value will be used.
2529.  */
2530. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2531. {
2532.     int blk, ch;

libavcodec/ac3enc.c:2530:1: Parameter `s->start_freq[*]`
  2528.  * default value will be used.
  2529.  */
  2530. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2531. {
  2532.     int blk, ch;

libavcodec/ac3enc.c:2553: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` 
  2551.     /* LFE channel always has 7 coefs */
  2552.     if (s->lfe_on) {
  2553.         s->start_freq[s->lfe_channel] = 0;
                ^
  2554.         for (blk = 0; blk < AC3_MAX_BLOCKS; blk++)
  2555.             s->blocks[blk].end_freq[ch] = 7;
