Revision 8c3eba7c libavcodec/h261.c

View differences:

libavcodec/h261.c
970 970

  
971 971
    /* skip everything if we are in a hurry>=5 */
972 972
    if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
973
    if(  (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==B_TYPE)
974
       ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=I_TYPE)
975
       || avctx->skip_frame >= AVDISCARD_ALL)
976
        return get_consumed_bytes(s, buf_size);
973 977

  
974 978
    if(MPV_frame_start(s, avctx) < 0)
975 979
        return -1;

Also available in: Unified diff