diff mpeg12.c @ 1098:b7f267d168b7 libavcodec

mpeg2 field pictures + sliced mode (doesnt work with mplayer though, dunno why)
author michaelni
date Wed, 05 Mar 2003 20:03:15 +0000
parents 5e6e505d8997
children 1e39f273ecd6
line wrap: on
line diff
--- a/mpeg12.c	Wed Mar 05 17:53:33 2003 +0000
+++ b/mpeg12.c	Wed Mar 05 20:03:15 2003 +0000
@@ -1875,7 +1875,13 @@
         }
 
         if (++s->mb_x >= s->mb_width) {
-            ff_draw_horiz_band(s);
+            if(s->picture_structure==PICT_FRAME){
+                ff_draw_horiz_band(s, 16*s->mb_y, 16);
+            }else{
+                if(!s->first_field){
+                    ff_draw_horiz_band(s, 32*s->mb_y, 32);
+                }
+            }
 
             s->mb_x = 0;
             s->mb_y++;