]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv34.c
Move AVMediaType from libavcodec to libavutil.
[ffmpeg] / libavcodec / rv34.c
index 1100fbd2443b3d25f13a65160ec750b36fc00083..50ded799779f7260873368117d90113f9fc00701 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)