comparison 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
comparison
equal deleted inserted replaced
2094:9c29987380e4 2095:5ab35105671a
2867 if(avctx->hurry_up && s2->pict_type==B_TYPE) break; 2867 if(avctx->hurry_up && s2->pict_type==B_TYPE) break;
2868 /* skip everything if we are in a hurry>=5 */ 2868 /* skip everything if we are in a hurry>=5 */
2869 if(avctx->hurry_up>=5) break; 2869 if(avctx->hurry_up>=5) break;
2870 2870
2871 if (!s->mpeg_enc_ctx_allocated) break; 2871 if (!s->mpeg_enc_ctx_allocated) break;
2872
2873 if(s2->codec_id == CODEC_ID_MPEG2VIDEO){
2874 if(mb_y < avctx->skip_top || mb_y >= s2->mb_height - avctx->skip_bottom)
2875 break;
2876 }
2872 2877
2873 if(s2->first_slice){ 2878 if(s2->first_slice){
2874 s2->first_slice=0; 2879 s2->first_slice=0;
2875 if(mpeg_field_start(s2) < 0) 2880 if(mpeg_field_start(s2) < 0)
2876 return -1; 2881 return -1;