summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-26 21:28:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-26 21:28:31 +0000
commit0f74857497709eec01319ca04aabcec568546a2f (patch)
tree582b8f3b6c7f0cb2fa417a68c22e9ae4e2cd138b /libavcodec/mpegvideo.c
parentf06afd698bf59fcf536dc578e0df16e832b56ff5 (diff)
lowres slice fix
Originally committed as revision 3516 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index ca1d6fd361..1b6aeb804a 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -3702,7 +3702,7 @@ void ff_draw_horiz_band(MpegEncContext *s, int y, int h){
if(s->first_field && !(s->avctx->slice_flags&SLICE_FLAG_ALLOW_FIELD)) return;
}
- h= FFMIN(h, s->height - y);
+ h= FFMIN(h, (s->height>>s->avctx->lowres) - y);
if(s->pict_type==B_TYPE || s->low_delay || (s->avctx->slice_flags&SLICE_FLAG_CODED_ORDER))
src= (AVFrame*)s->current_picture_ptr;