diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-26 13:03:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-26 13:03:43 +0000 |
commit | af2a9e8fdb94e12297500244e222c1140d6e1716 (patch) | |
tree | ec11c26ce5476517b11b38b78132a780b1d9ad7e /libavcodec/mpeg12.c | |
parent | da9c9637ae307a23f4fe0f56c02f51e75378d2de (diff) | |
download | ffmpeg-af2a9e8fdb94e12297500244e222c1140d6e1716.tar.gz |
lowres slice fix
Originally committed as revision 3513 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 484f6b278e..550f17d154 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2526,8 +2526,9 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, MPV_decode_mb(s, s->block); if (++s->mb_x >= s->mb_width) { + const int mb_size= 16>>s->avctx->lowres; - ff_draw_horiz_band(s, 16*s->mb_y, 16); + ff_draw_horiz_band(s, mb_size*s->mb_y, mb_size); s->mb_x = 0; s->mb_y++; |