diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-06-26 02:20:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-26 02:20:38 +0000 |
commit | 0dfd33c3f115b95e016e8d6f0ffc3513f3b22182 (patch) | |
tree | b219844bc47a15d66ed088a835c380cd347daba2 /libavcodec/mpeg12.c | |
parent | 75293f05f9b9b6252c9ab5f5470affcb62847eb0 (diff) |
support skiping of mb rows during decoding
Originally committed as revision 3253 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index f235a199b0..ff96bff4af 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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; |