diff h263dec.c @ 2261:bd09f4d1976f libavcodec

lowres slice fix
author michael
date Sun, 26 Sep 2004 13:03:43 +0000
parents 83ab15bd1638
children 514949de5d15
line wrap: on
line diff
--- a/h263dec.c	Sun Sep 26 11:05:35 2004 +0000
+++ b/h263dec.c	Sun Sep 26 13:03:43 2004 +0000
@@ -139,6 +139,7 @@
 
 static int decode_slice(MpegEncContext *s){
     const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F;
+    const int mb_size= 16>>s->avctx->lowres;
     s->last_resync_gb= s->gb;
     s->first_slice_line= 1;
         
@@ -214,7 +215,7 @@
                         
                     if(++s->mb_x >= s->mb_width){
                         s->mb_x=0;
-                        ff_draw_horiz_band(s, s->mb_y*16, 16);
+                        ff_draw_horiz_band(s, s->mb_y*mb_size, mb_size);
                         s->mb_y++;
                     }
                     return 0; 
@@ -234,7 +235,7 @@
                 ff_h263_loop_filter(s);
         }
         
-        ff_draw_horiz_band(s, s->mb_y*16, 16);
+        ff_draw_horiz_band(s, s->mb_y*mb_size, mb_size);
         
         s->mb_x= 0;
     }