comparison mpegvideo.c @ 2264:d7fdb7be7df4 libavcodec

lowres slice fix
author michael
date Sun, 26 Sep 2004 21:28:31 +0000
parents 33835650f5b6
children c93da911905e
comparison
equal deleted inserted replaced
2263:258f21820108 2264:d7fdb7be7df4
3700 h <<= 1; 3700 h <<= 1;
3701 y <<= 1; 3701 y <<= 1;
3702 if(s->first_field && !(s->avctx->slice_flags&SLICE_FLAG_ALLOW_FIELD)) return; 3702 if(s->first_field && !(s->avctx->slice_flags&SLICE_FLAG_ALLOW_FIELD)) return;
3703 } 3703 }
3704 3704
3705 h= FFMIN(h, s->height - y); 3705 h= FFMIN(h, (s->height>>s->avctx->lowres) - y);
3706 3706
3707 if(s->pict_type==B_TYPE || s->low_delay || (s->avctx->slice_flags&SLICE_FLAG_CODED_ORDER)) 3707 if(s->pict_type==B_TYPE || s->low_delay || (s->avctx->slice_flags&SLICE_FLAG_CODED_ORDER))
3708 src= (AVFrame*)s->current_picture_ptr; 3708 src= (AVFrame*)s->current_picture_ptr;
3709 else if(s->last_picture_ptr) 3709 else if(s->last_picture_ptr)
3710 src= (AVFrame*)s->last_picture_ptr; 3710 src= (AVFrame*)s->last_picture_ptr;