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

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

libavcodec/svq1enc.c:116:1: <Offset trace>
114. #define THRESHOLD_MULTIPLIER 0.6
115. 
116. 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){
     ^
117.     int count, y, x, i, j, split, best_mean, best_score, best_count;
118.     int best_vector[6];

libavcodec/svq1enc.c:116:1: Parameter `level`
  114. #define THRESHOLD_MULTIPLIER 0.6
  115. 
  116. 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){
       ^
  117.     int count, y, x, i, j, split, best_mean, best_score, best_count;
  118.     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:131:9: Array access: Offset: 5 Size: 4 by call to `encode_block` 
  129.     //FIXME optimize, this doenst need to be done multiple times
  130.     if(intra){
  131.         codebook_sum= svq1_intra_codebook_sum[level];
               ^
  132.         codebook= ff_svq1_intra_codebooks[level];
  133.         mean_vlc= ff_svq1_intra_mean_vlc;
