changeset 2264:d7fdb7be7df4 libavcodec

lowres slice fix
author michael
date Sun, 26 Sep 2004 21:28:31 +0000
parents 258f21820108
children c93da911905e
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sun Sep 26 17:36:53 2004 +0000
+++ b/mpegvideo.c	Sun Sep 26 21:28:31 2004 +0000
@@ -3702,7 +3702,7 @@
             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;