comparison h263.c @ 272:897dc7c6aa94 libavcodec

fixing 4MV
author michaelni
date Mon, 18 Mar 2002 20:11:43 +0000
parents 252444e5259b
children d0c186bcf075
comparison
equal deleted inserted replaced
271:997aac7d4e3e 272:897dc7c6aa94
553 xy = s->block_index[block]; 553 xy = s->block_index[block];
554 554
555 mot_val = s->motion_val[xy]; 555 mot_val = s->motion_val[xy];
556 556
557 /* special case for first line */ 557 /* special case for first line */
558 if (s->mb_y == 0 || s->first_slice_line || s->first_gob_line) { 558 if ((s->mb_y == 0 || s->first_slice_line || s->first_gob_line) && block<2) {
559 A = s->motion_val[xy - 1]; 559 A = s->motion_val[xy - 1];
560 *px = A[0]; 560 *px = A[0];
561 *py = A[1]; 561 *py = A[1];
562 } else { 562 } else {
563 A = s->motion_val[xy - 1]; 563 A = s->motion_val[xy - 1];
2351 if (s->pict_type == B_TYPE) { 2351 if (s->pict_type == B_TYPE) {
2352 s->b_code = get_bits(&s->gb, 3); 2352 s->b_code = get_bits(&s->gb, 3);
2353 //printf("b-code %d\n", s->b_code); 2353 //printf("b-code %d\n", s->b_code);
2354 } 2354 }
2355 //printf("quant:%d fcode:%d\n", s->qscale, s->f_code); 2355 //printf("quant:%d fcode:%d\n", s->qscale, s->f_code);
2356
2356 if(!s->scalability){ 2357 if(!s->scalability){
2357 if (s->shape!=RECT_SHAPE && s->pict_type!=I_TYPE) { 2358 if (s->shape!=RECT_SHAPE && s->pict_type!=I_TYPE) {
2358 skip_bits1(&s->gb); // vop shape coding type 2359 skip_bits1(&s->gb); // vop shape coding type
2359 } 2360 }
2360 } 2361 }