libavcodec/mpc8.c:354: error: Integer Overflow L2
  ([0, 1020] - 510):unsigned32.

libavcodec/mpc8.c:253:16: <LHS trace>
251.     /* get output buffer */
252.     c->frame.nb_samples = MPC_FRAME_SIZE;
253.     if ((res = avctx->get_buffer(avctx, &c->frame)) < 0) {
                    ^
254.         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
255.         return res;

libavcodec/mpc8.c:253:16: Unknown value from: non-const function
251.     /* get output buffer */
252.     c->frame.nb_samples = MPC_FRAME_SIZE;
253.     if ((res = avctx->get_buffer(avctx, &c->frame)) < 0) {
                    ^
254.         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
255.         return res;

libavcodec/mpc8.c:354:42: Call
352.             case -1:
353.                 for(j = 0; j < SAMPLES_PER_BAND; j++)
354.                     c->Q[ch][off + j] = (av_lfg_get(&c->rnd) & 0x3FC) - 510;
                                              ^
355.                 break;
356.             case 0:

libavutil/lfg.h:38:1: Parameter `c->state[*]`
  36.  * it may be good enough and faster for your specific use case.
  37.  */
  38. static inline unsigned int av_lfg_get(AVLFG *c){
      ^
  39.     c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63];
  40.     return c->state[c->index++ & 63];

libavutil/lfg.h:40:5: Assignment
  38. static inline unsigned int av_lfg_get(AVLFG *c){
  39.     c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63];
  40.     return c->state[c->index++ & 63];
          ^
  41. }
  42. 

libavcodec/mpc8.c:354:21: Binary operation: ([0, 1020] - 510):unsigned32
352.             case -1:
353.                 for(j = 0; j < SAMPLES_PER_BAND; j++)
354.                     c->Q[ch][off + j] = (av_lfg_get(&c->rnd) & 0x3FC) - 510;
                         ^
355.                 break;
356.             case 0:
