libavcodec/ffv1.c:446: error: Buffer Overrun L3
  Offset: [0, 2] Size: [2, 3].

libavcodec/ffv1.c:445:13: <Offset trace>
443. 
444.     for(y=0; y<h; y++){
445.         for(i=0; i<ring_size; i++)
                 ^
446.             sample[i]= sample_buffer[(h+i-y)%ring_size]+3;
447. 

libavcodec/ffv1.c:445:13: Assignment
443. 
444.     for(y=0; y<h; y++){
445.         for(i=0; i<ring_size; i++)
                 ^
446.             sample[i]= sample_buffer[(h+i-y)%ring_size]+3;
447. 

libavcodec/ffv1.c:438:26: <Length trace>
436. static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
437.     int x,y,i;
438.     const int ring_size= s->avctx->context_model ? 3 : 2;
                              ^
439.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
440.     s->run_index=0;

libavcodec/ffv1.c:438:26: Assignment
436. static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
437.     int x,y,i;
438.     const int ring_size= s->avctx->context_model ? 3 : 2;
                              ^
439.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
440.     s->run_index=0;

libavcodec/ffv1.c:438:5: Assignment
436. static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
437.     int x,y,i;
438.     const int ring_size= s->avctx->context_model ? 3 : 2;
         ^
439.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
440.     s->run_index=0;

libavcodec/ffv1.c:439:57: Array declaration
437.     int x,y,i;
438.     const int ring_size= s->avctx->context_model ? 3 : 2;
439.     int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
                                                             ^
440.     s->run_index=0;
441. 

libavcodec/ffv1.c:446:13: Array access: Offset: [0, 2] Size: [2, 3]
444.     for(y=0; y<h; y++){
445.         for(i=0; i<ring_size; i++)
446.             sample[i]= sample_buffer[(h+i-y)%ring_size]+3;
                 ^
447. 
448.         sample[0][-1]= sample[1][0  ];
