comparison svq1.c @ 2028:141a9539e270 libavcodec

data_size = 0 cleanup
author michael
date Fri, 21 May 2004 14:37:16 +0000
parents f65d87bfdd5a
children a8100a516b0a
comparison
equal deleted inserted replaced
2027:3a78447c3b53 2028:141a9539e270
598 } 598 }
599 599
600 return value; 600 return value;
601 } 601 }
602 602
603 #if 0
604 static uint16_t svq1_component_checksum (uint16_t *pixels, int pitch, 603 static uint16_t svq1_component_checksum (uint16_t *pixels, int pitch,
605 int width, int height, int value) { 604 int width, int height, int value) {
606 int x, y; 605 int x, y;
607 606
608 for (y=0; y < height; y++) { 607 for (y=0; y < height; y++) {
613 pixels += pitch; 612 pixels += pitch;
614 } 613 }
615 614
616 return value; 615 return value;
617 } 616 }
618 #endif
619 617
620 static void svq1_parse_string (GetBitContext *bitbuf, uint8_t *out) { 618 static void svq1_parse_string (GetBitContext *bitbuf, uint8_t *out) {
621 uint8_t seed; 619 uint8_t seed;
622 int i; 620 int i;
623 621
713 MpegEncContext *s=avctx->priv_data; 711 MpegEncContext *s=avctx->priv_data;
714 uint8_t *current, *previous; 712 uint8_t *current, *previous;
715 int result, i, x, y, width, height; 713 int result, i, x, y, width, height;
716 AVFrame *pict = data; 714 AVFrame *pict = data;
717 715
718 *data_size=0;
719
720 if(buf==NULL && buf_size==0){ 716 if(buf==NULL && buf_size==0){
721 return 0; 717 return 0;
722 } 718 }
723 719
724 /* initialize bit buffer */ 720 /* initialize bit buffer */