projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5507833
)
fixing slices which start at mb_x>0
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 4 Aug 2002 18:19:09 +0000
(18:19 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 4 Aug 2002 18:19:09 +0000
(18:19 +0000)
Originally committed as revision 840 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpeg12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index
548e219
..
8939bb6
100644
(file)
--- a/
libavcodec/mpeg12.c
+++ b/
libavcodec/mpeg12.c
@@
-672,6
+672,12
@@
static int mpeg_decode_mb(MpegEncContext *s,
}
}
}
+ 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)){