Commit b7923f74 authored by arpi_esp's avatar arpi_esp

fix slices when code=0x18, patch by Michael Niedermayer <michael@mplayer.dev.hu>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@246 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94194ffd
...@@ -675,6 +675,16 @@ int msmpeg4_decode_mb(MpegEncContext *s, ...@@ -675,6 +675,16 @@ int msmpeg4_decode_mb(MpegEncContext *s,
1024, s->mb_width); 1024, s->mb_width);
memsetw(&s->dc_val[2][(1) + (s->mb_y) * wrap], memsetw(&s->dc_val[2][(1) + (s->mb_y) * wrap],
1024, s->mb_width); 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; s->first_slice_line = 1;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment