# HG changeset patch # User michael # Date 1091495239 0 # Node ID 6173c83664a5380b51843eb0c6f752a4e5742256 # Parent ec7789e19e43347c9ee3e046b6a095a5acce0576 10l (segfault) diff -r ec7789e19e43 -r 6173c83664a5 ffv1.c --- a/ffv1.c Mon Aug 02 19:09:28 2004 +0000 +++ b/ffv1.c Tue Aug 03 01:07:19 2004 +0000 @@ -430,7 +430,7 @@ static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){ int x,y,i; - const int ring_size=2; + const int ring_size= s->avctx->context_model ? 3 : 2; int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size]; s->run_index=0; @@ -453,7 +453,7 @@ static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){ int x, y, p, i; - const int ring_size=2; + const int ring_size= s->avctx->context_model ? 3 : 2; int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size]; s->run_index=0;