Revision 8ed2ae09 libavcodec/vc1dec.c
libavcodec/vc1dec.c | ||
---|---|---|
3374 | 3374 |
goto err; |
3375 | 3375 |
} |
3376 | 3376 |
|
3377 |
// for hurry_up==5
|
|
3377 |
// for skipping the frame
|
|
3378 | 3378 |
s->current_picture.pict_type= s->pict_type; |
3379 | 3379 |
s->current_picture.key_frame= s->pict_type == FF_I_TYPE; |
3380 | 3380 |
|
... | ... | |
3382 | 3382 |
if(s->last_picture_ptr==NULL && (s->pict_type==FF_B_TYPE || s->dropable)){ |
3383 | 3383 |
goto err; |
3384 | 3384 |
} |
3385 |
#if FF_API_HURRY_UP |
|
3385 | 3386 |
/* skip b frames if we are in a hurry */ |
3386 | 3387 |
if(avctx->hurry_up && s->pict_type==FF_B_TYPE) return -1;//buf_size; |
3388 |
#endif |
|
3387 | 3389 |
if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==FF_B_TYPE) |
3388 | 3390 |
|| (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=FF_I_TYPE) |
3389 | 3391 |
|| avctx->skip_frame >= AVDISCARD_ALL) { |
3390 | 3392 |
goto end; |
3391 | 3393 |
} |
3394 |
#if FF_API_HURRY_UP |
|
3392 | 3395 |
/* skip everything if we are in a hurry>=5 */ |
3393 | 3396 |
if(avctx->hurry_up>=5) { |
3394 | 3397 |
goto err; |
3395 | 3398 |
} |
3399 |
#endif |
|
3396 | 3400 |
|
3397 | 3401 |
if(s->next_p_frame_damaged){ |
3398 | 3402 |
if(s->pict_type==FF_B_TYPE) |
Also available in: Unified diff