OSDN Git Service

Revert commit 22378.
authorVitor Sessak <vitor1001@gmail.com>
Tue, 9 Mar 2010 08:20:11 +0000 (08:20 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Tue, 9 Mar 2010 08:20:11 +0000 (08:20 +0000)
It broke FATE and kostya asked me on IRC to revert it.

Originally committed as revision 22379 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/rv34.c

index 1100fbd..50ded79 100644 (file)
@@ -1452,12 +1452,8 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
         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)