changeset 186:cf37da86d990 libavcodec

fix slices when code=0x18, patch by Michael Niedermayer <michael@mplayer.dev.hu>
author arpi_esp
date Tue, 08 Jan 2002 00:21:41 +0000
parents 8fceccef5804
children 3f3b14d3a23d
files msmpeg4.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/msmpeg4.c	Fri Jan 04 21:56:11 2002 +0000
+++ b/msmpeg4.c	Tue Jan 08 00:21:41 2002 +0000
@@ -675,6 +675,16 @@
                     1024, s->mb_width);
             memsetw(&s->dc_val[2][(1) + (s->mb_y) * wrap], 
                     1024, s->mb_width);
+            
+            /* reset AC pred (set previous line to 0) */
+            wrap = s->mb_width * 2 + 2;
+            memsetw(s->ac_val[0][0] + (1 + (2 * s->mb_y) * wrap)*16,
+                    0, 2 * s->mb_width*16);
+            wrap = s->mb_width + 2;
+            memsetw(s->ac_val[1][0] + (1 + (s->mb_y) * wrap)*16,
+                    0, s->mb_width*16);
+            memsetw(s->ac_val[2][0] + (1 + (s->mb_y) * wrap)*16,
+                    0, s->mb_width*16);
 
             s->first_slice_line = 1;
         } else {