changeset 272:897dc7c6aa94 libavcodec

fixing 4MV
author michaelni
date Mon, 18 Mar 2002 20:11:43 +0000
parents 997aac7d4e3e
children 34f40a0fc840
files h263.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Mar 17 19:45:33 2002 +0000
+++ b/h263.c	Mon Mar 18 20:11:43 2002 +0000
@@ -555,7 +555,7 @@
     mot_val = s->motion_val[xy];
 
     /* special case for first line */
-    if (s->mb_y == 0 || s->first_slice_line || s->first_gob_line) {
+    if ((s->mb_y == 0 || s->first_slice_line || s->first_gob_line) && block<2) {
         A = s->motion_val[xy - 1];
         *px = A[0];
         *py = A[1];
@@ -2353,6 +2353,7 @@
 //printf("b-code %d\n", s->b_code);
          }
 //printf("quant:%d fcode:%d\n", s->qscale, s->f_code);
+
          if(!s->scalability){
              if (s->shape!=RECT_SHAPE && s->pict_type!=I_TYPE) {
                  skip_bits1(&s->gb); // vop shape coding type