libavcodec/svq1enc.c:401: error: Buffer Overrun L1
  Offset: 5 Size: 4 by call to `encode_block`.

libavcodec/svq1enc.c:401:28: Call
399.                     score[0]= vlc[1]*lambda;
400.                 }
401.                 score[0]+= encode_block(s, src+16*x, NULL, temp, stride, 5, 64, lambda, 1);
                                ^
402.                 for(i=0; i<6; i++){
403.                     count[0][i]= put_bits_count(&s->reorder_pb[i]);

libavcodec/svq1enc.c:124:1: <Offset trace>
122. #endif
123. 
124. static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){
     ^
125.     int count, y, x, i, j, split, best_mean, best_score, best_count;
126.     int best_vector[6];

libavcodec/svq1enc.c:124:1: Parameter `level`
  122. #endif
  123. 
  124. static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){
       ^
  125.     int count, y, x, i, j, split, best_mean, best_score, best_count;
  126.     int best_vector[6];

libavcodec/svq1enc_cb.h:64:1: <Length trace>
62. };
63. 
64. static const int8_t svq1_intra_codebook_sum[4][16*6] = {
    ^
65.  {
66.   0,  0,  0, -1, -1, -1, -1, -2,  0, -1, -1,  0, -1,  0,  1,  0,

libavcodec/svq1enc_cb.h:64:1: Array declaration
  62. };
  63. 
  64. static const int8_t svq1_intra_codebook_sum[4][16*6] = {
      ^
  65.  {
  66.   0,  0,  0, -1, -1, -1, -1, -2,  0, -1, -1,  0, -1,  0,  1,  0,

libavcodec/svq1enc.c:139:9: Array access: Offset: 5 Size: 4 by call to `encode_block` 
  137.     //FIXME optimize, this doenst need to be done multiple times
  138.     if(intra){
  139.         codebook_sum= svq1_intra_codebook_sum[level];
               ^
  140.         codebook= ff_svq1_intra_codebooks[level];
  141.         mean_vlc= ff_svq1_intra_mean_vlc;
