Revision 8ed2ae09 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
2398 2398
                /* Skip P-frames if we do not have a reference frame or we have an invalid header. */
2399 2399
                    if(s2->pict_type==FF_P_TYPE && !s->sync) break;
2400 2400
                }
2401
#if FF_API_HURRY_UP
2401 2402
                /* Skip B-frames if we are in a hurry. */
2402 2403
                if(avctx->hurry_up && s2->pict_type==FF_B_TYPE) break;
2404
#endif
2403 2405
                if(  (avctx->skip_frame >= AVDISCARD_NONREF && s2->pict_type==FF_B_TYPE)
2404 2406
                    ||(avctx->skip_frame >= AVDISCARD_NONKEY && s2->pict_type!=FF_I_TYPE)
2405 2407
                    || avctx->skip_frame >= AVDISCARD_ALL)
2406 2408
                    break;
2409
#if FF_API_HURRY_UP
2407 2410
                /* Skip everything if we are in a hurry>=5. */
2408 2411
                if(avctx->hurry_up>=5) break;
2412
#endif
2409 2413

  
2410 2414
                if (!s->mpeg_enc_ctx_allocated) break;
2411 2415

  

Also available in: Unified diff