diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-08-04 18:19:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-08-04 18:19:09 +0000 |
commit | 0a6baf39cb426226ec23147f536ad9511336c64a (patch) | |
tree | abdbedb3c08e2f3749cdd685b59413cc39e8b777 /libavcodec/mpeg12.c | |
parent | 55078332495d879ad4aeb23ae2bada75130431c6 (diff) | |
download | ffmpeg-streaming-0a6baf39cb426226ec23147f536ad9511336c64a.zip ffmpeg-streaming-0a6baf39cb426226ec23147f536ad9511336c64a.tar.gz |
fixing slices which start at mb_x>0
Originally committed as revision 840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 548e219..8939bb6 100644 --- 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)){ |