Mercurial > libavcodec.hg
changeset 2162:6173c83664a5 libavcodec
10l (segfault)
author | michael |
---|---|
date | Tue, 03 Aug 2004 01:07:19 +0000 |
parents | ec7789e19e43 |
children | b25df257eab0 |
files | ffv1.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;