# HG changeset patch # User vitor # Date 1268122811 0 # Node ID 1a7d902e33ace40b74c30cc68e69aa163c0ad969 # Parent da870c6f71ce3fa95bd6e3c5b45b682b4d3667c5 Revert commit 22378. It broke FATE and kostya asked me on IRC to revert it. diff -r da870c6f71ce -r 1a7d902e33ac rv34.c --- a/rv34.c Tue Mar 09 07:14:34 2010 +0000 +++ b/rv34.c Tue Mar 09 08:20:11 2010 +0000 @@ -1452,12 +1452,8 @@ av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n"); return -1; } - if((!s->last_picture_ptr || !s->last_picture_ptr->data[0]) && si.type == FF_P_TYPE) - return -1; if((!s->last_picture_ptr || !s->last_picture_ptr->data[0]) && si.type == FF_B_TYPE) return -1; - if((!s->next_picture_ptr || !s->next_picture_ptr->data[0]) && si.type == FF_B_TYPE) - return -1; /* skip b frames if we are in a hurry */ if(avctx->hurry_up && si.type==FF_B_TYPE) return buf_size; if( (avctx->skip_frame >= AVDISCARD_NONREF && si.type==FF_B_TYPE)