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

libavcodec/mpc7.c:124:23: <LHS trace>
122.     case -1:
123.         for(i = 0; i < SAMPLES_PER_BAND; i++){
124.             *dst++ = (av_random(&c->rnd) & 0x3FC) - 510;
                           ^
125.         }
126.         break;

libavcodec/mpc7.c:124:23: Call
122.     case -1:
123.         for(i = 0; i < SAMPLES_PER_BAND; i++){
124.             *dst++ = (av_random(&c->rnd) & 0x3FC) - 510;
                           ^
125.         }
126.         break;

libavutil/random.h:46:1: Parameter `state->mt[*]`
  44.  * some evidence that it makes a difference for the case where you use it.
  45.  */
  46. static inline unsigned int av_random(AVRandomState *state)
      ^
  47. {
  48.     unsigned int y;

libavutil/random.h:55:5: Assignment
  53. 
  54.     // Grab one...
  55.     y = state->mt[state->index++];
          ^
  56. 
  57.     /* Now temper (Mersenne Twister coefficients). The coefficients for MT19937 are.. */

libavutil/random.h:58:5: Assignment
  56. 
  57.     /* Now temper (Mersenne Twister coefficients). The coefficients for MT19937 are.. */
  58.     y ^= (y >> 11);
          ^
  59.     y ^= (y << 7) & 0x9d2c5680;
  60.     y ^= (y << 15) & 0xefc60000;

libavutil/random.h:59:5: Assignment
  57.     /* Now temper (Mersenne Twister coefficients). The coefficients for MT19937 are.. */
  58.     y ^= (y >> 11);
  59.     y ^= (y << 7) & 0x9d2c5680;
          ^
  60.     y ^= (y << 15) & 0xefc60000;
  61.     y ^= (y >> 18);

libavutil/random.h:60:5: Assignment
  58.     y ^= (y >> 11);
  59.     y ^= (y << 7) & 0x9d2c5680;
  60.     y ^= (y << 15) & 0xefc60000;
          ^
  61.     y ^= (y >> 18);
  62. 

libavutil/random.h:61:5: Assignment
  59.     y ^= (y << 7) & 0x9d2c5680;
  60.     y ^= (y << 15) & 0xefc60000;
  61.     y ^= (y >> 18);
          ^
  62. 
  63.     return y;

libavutil/random.h:63:5: Assignment
  61.     y ^= (y >> 18);
  62. 
  63.     return y;
          ^
  64. }
  65. 

libavcodec/mpc7.c:124:13: Binary operation: ([0, 1020] - 510):unsigned32
122.     case -1:
123.         for(i = 0; i < SAMPLES_PER_BAND; i++){
124.             *dst++ = (av_random(&c->rnd) & 0x3FC) - 510;
                 ^
125.         }
126.         break;
