comparison ffv1.c @ 2162:6173c83664a5 libavcodec

10l (segfault)
author michael
date Tue, 03 Aug 2004 01:07:19 +0000
parents 141a9539e270
children 2a767157935e
comparison
equal deleted inserted replaced
2161:ec7789e19e43 2162:6173c83664a5
428 s->run_index= run_index; 428 s->run_index= run_index;
429 } 429 }
430 430
431 static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){ 431 static void encode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
432 int x,y,i; 432 int x,y,i;
433 const int ring_size=2; 433 const int ring_size= s->avctx->context_model ? 3 : 2;
434 int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size]; 434 int_fast16_t sample_buffer[ring_size][w+6], *sample[ring_size];
435 s->run_index=0; 435 s->run_index=0;
436 436
437 memset(sample_buffer, 0, sizeof(sample_buffer)); 437 memset(sample_buffer, 0, sizeof(sample_buffer));
438 438
451 } 451 }
452 } 452 }
453 453
454 static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){ 454 static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){
455 int x, y, p, i; 455 int x, y, p, i;
456 const int ring_size=2; 456 const int ring_size= s->avctx->context_model ? 3 : 2;
457 int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size]; 457 int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size];
458 s->run_index=0; 458 s->run_index=0;
459 459
460 memset(sample_buffer, 0, sizeof(sample_buffer)); 460 memset(sample_buffer, 0, sizeof(sample_buffer));
461 461