libavcodec/ac3enc.c:2194: 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:2164:1: Parameter `avctx->priv_data->lfe_channel`
2162.  * Initialize the encoder.
2163.  */
2164. static av_cold int ac3_encode_init(AVCodecContext *avctx)
      ^
2165. {
2166.     AC3EncodeContext *s = avctx->priv_data;

libavcodec/ac3enc.c:2173:11: Call
2171.     ff_ac3_common_init();
2172. 
2173.     ret = validate_options(avctx, s);
                ^
2174.     if (ret)
2175.         return ret;

libavcodec/ac3enc.c:1969:1: Parameter `s->lfe_channel`
  1967. 
  1968. 
  1969. static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
        ^
  1970. {
  1971.     int i, ret;

libavcodec/ac3enc.c:1979:11: Call
  1977.                                       "might be incorrect.\n");
  1978.     }
  1979.     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
                  ^
  1980.     if (ret) {
  1981.         av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");

libavcodec/ac3enc.c:1924:1: Parameter `s->lfe_channel`
    1922.  * Set channel information during initialization.
    1923.  */
    1924. static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
          ^
    1925.                                     int64_t *channel_layout)
    1926. {

libavcodec/ac3enc.c:2194:5: Call
2192.     }
2193. 
2194.     set_bandwidth(s);
          ^
2195. 
2196.     exponent_init(s);

libavcodec/ac3enc.c:2048:1: <Offset trace>
2046.  * default value will be used.
2047.  */
2048. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2049. {
2050.     int ch;

libavcodec/ac3enc.c:2048:1: Parameter `s->lfe_channel`
  2046.  * default value will be used.
  2047.  */
  2048. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2049. {
  2050.     int ch;

libavcodec/ac3enc.c:2048:1: <Length trace>
2046.  * default value will be used.
2047.  */
2048. static av_cold void set_bandwidth(AC3EncodeContext *s)
      ^
2049. {
2050.     int ch;

libavcodec/ac3enc.c:2048:1: Parameter `s->nb_coefs[*]`
  2046.  * default value will be used.
  2047.  */
  2048. static av_cold void set_bandwidth(AC3EncodeContext *s)
        ^
  2049. {
  2050.     int ch;

libavcodec/ac3enc.c:2067: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` 
  2065.     }
  2066.     if (s->lfe_on)
  2067.         s->nb_coefs[s->lfe_channel] = 7; /* LFE channel always has 7 coefs */
                ^
  2068. }
  2069. 
