summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-08-03 01:07:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-08-03 01:07:19 +0000
commitfa2522d7009fefaacf85855e8f3f4aec9f4ef007 (patch)
tree669f9518948738e7439d936867b3ab3e5a05b08b /libavcodec/ffv1.c
parent93fbdb5ac555e6fc03af61ac5a870d30924c330b (diff)
10l (segfault)
Originally committed as revision 3375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index a85baea4b6..abd76ba6a6 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -430,7 +430,7 @@ static inline void encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], i
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_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride,
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;