Revision 8ed2ae09 libavcodec/svq3.c

View differences:

libavcodec/svq3.c
945 945
               s->adaptive_quant, s->qscale, h->slice_num);
946 946
    }
947 947

  
948
    /* for hurry_up == 5 */
948
    /* for skipping the frame */
949 949
    s->current_picture.pict_type = s->pict_type;
950 950
    s->current_picture.key_frame = (s->pict_type == FF_I_TYPE);
951 951

  
952 952
    /* Skip B-frames if we do not have reference frames. */
953 953
    if (s->last_picture_ptr == NULL && s->pict_type == FF_B_TYPE)
954 954
        return 0;
955
#if FF_API_HURRY_UP
955 956
    /* Skip B-frames if we are in a hurry. */
956 957
    if (avctx->hurry_up && s->pict_type == FF_B_TYPE)
957 958
        return 0;
958 959
    /* Skip everything if we are in a hurry >= 5. */
959 960
    if (avctx->hurry_up >= 5)
960 961
        return 0;
962
#endif
961 963
    if (  (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == FF_B_TYPE)
962 964
        ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != FF_I_TYPE)
963 965
        || avctx->skip_frame >= AVDISCARD_ALL)

Also available in: Unified diff