diff rv10.c @ 1661:4c9fd29f1606 libavcodec

h263 slice structured mode slice cleanup
author michael
date Sun, 07 Dec 2003 01:33:45 +0000
parents aaaa1767acc2
children 6ec50457bb9b
line wrap: on
line diff
--- a/rv10.c	Fri Dec 05 23:12:03 2003 +0000
+++ b/rv10.c	Sun Dec 07 01:33:45 2003 +0000
@@ -403,13 +403,8 @@
         }
     }
 //    printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time);
-    
-    for(i=0; i<6; i++){
-        if(s->mb_width*s->mb_height < ff_mba_max[i]) break;
-    }
-    mb_pos= get_bits(&s->gb, ff_mba_length[i]);
-    s->mb_x= mb_pos % s->mb_width;
-    s->mb_y= mb_pos / s->mb_width;
+
+    ff_h263_decode_mba(s);    
     s->no_rounding= get_bits1(&s->gb);
     
     s->f_code = 1;