support skiping of mb rows during decoding

Originally committed as revision 3253 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-06-26 02:20:38 +00:00
parent 75293f05f9
commit 0dfd33c3f1
3 changed files with 24 additions and 4 deletions

View File

@@ -2869,6 +2869,11 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
if(avctx->hurry_up>=5) break;
if (!s->mpeg_enc_ctx_allocated) break;
if(s2->codec_id == CODEC_ID_MPEG2VIDEO){
if(mb_y < avctx->skip_top || mb_y >= s2->mb_height - avctx->skip_bottom)
break;
}
if(s2->first_slice){
s2->first_slice=0;