libavcodec/alacenc.c:431: error: Buffer Overrun L1
  Offset: [2, +oo] (⇐ [0, +oo] + [2, +oo]) Size: 2 by call to `alac_linear_predictor`.

libavcodec/alacenc.c:405:14: Assignment
403.         put_bits(pb, 8, s->interlacing_leftweight);
404. 
405.         for (i = 0; i < channels; i++) {
                  ^
406.             calc_predictor_params(s, i);
407. 

libavcodec/alacenc.c:431:13: Call
429.         // apply lpc and entropy coding to audio samples
430.         for (i = 0; i < channels; i++) {
431.             alac_linear_predictor(s, i);
                 ^
432. 
433.             // TODO: determine when this will actually help. for now it's not used.

libavcodec/alacenc.c:277:14: <Offset trace>
275.         // generate warm-up samples
276.         residual[0] = samples[0];
277.         for (i = 1; i <= lpc.lpc_order; i++)
                  ^
278.             residual[i] = samples[i] - samples[i-1];
279. 

libavcodec/alacenc.c:277:14: Assignment
  275.         // generate warm-up samples
  276.         residual[0] = samples[0];
  277.         for (i = 1; i <= lpc.lpc_order; i++)
                    ^
  278.             residual[i] = samples[i] - samples[i-1];
  279. 

libavcodec/alacenc.c:253:1: <Length trace>
251. }
252. 
253. static void alac_linear_predictor(AlacEncodeContext *s, int ch)
     ^
254. {
255.     int i;

libavcodec/alacenc.c:253:1: Parameter `ch`
  251. }
  252. 
  253. static void alac_linear_predictor(AlacEncodeContext *s, int ch)
       ^
  254. {
  255.     int i;

libavcodec/alacenc.c:272:9: Assignment
  270. 
  271.     if (lpc.lpc_order > 0) {
  272.         int32_t *samples  = s->sample_buf[ch];
               ^
  273.         int32_t *residual = s->predictor_buf;
  274. 

libavcodec/alacenc.c:291:39: Array access: Offset: [2, +oo] (⇐ [0, +oo] + [2, +oo]) Size: 2 by call to `alac_linear_predictor` 
  289.             sum >>= lpc.lpc_quant;
  290.             sum += samples[0];
  291.             residual[i] = sign_extend(samples[lpc.lpc_order+1] - sum,
                                             ^
  292.                                       s->write_sample_size);
  293.             res_val = residual[i];
