# HG changeset patch # User michaelni # Date 1028485149 0 # Node ID 5f7ab2e73bc9db4444d82e0bd8d548cb49a6478b # Parent 7e26eb37bbbcaaaca21fd9dd8b4db2d592218a32 fixing slices which start at mb_x>0 diff -r 7e26eb37bbbc -r 5f7ab2e73bc9 mpeg12.c --- a/mpeg12.c Sun Aug 04 16:46:18 2002 +0000 +++ b/mpeg12.c Sun Aug 04 18:19:09 2002 +0000 @@ -672,6 +672,12 @@ } } } + if(s->mb_x==-1 /* first MB in a slice */ && s->mb_incr>1){ + s->mb_x+= (s->mb_incr - 1) % s->mb_width; + s->mb_y+= (s->mb_incr - 1) / s->mb_width; + s->mb_incr= 1; + } + if (++s->mb_x >= s->mb_width) { s->mb_x = 0; if (s->mb_y >= (s->mb_height - 1)){