diff mpeg12.c @ 2095:5ab35105671a libavcodec

support skiping of mb rows during decoding
author michael
date Sat, 26 Jun 2004 02:20:38 +0000
parents 82816cad0e29
children 3c1dba53954e
line wrap: on
line diff
--- a/mpeg12.c	Fri Jun 25 19:14:23 2004 +0000
+++ b/mpeg12.c	Sat Jun 26 02:20:38 2004 +0000
@@ -2869,6 +2869,11 @@
                         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;