static int shall_we_drop(AVFormatContext *s)

{

    struct dshow_ctx *ctx = s->priv_data;

    static const uint8_t dropscore[] = {62, 75, 87, 100};

    const int ndropscores = FF_ARRAY_ELEMS(dropscore);

    unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;



    if(dropscore[++ctx->video_frame_num%ndropscores] <= buffer_fullness) {

        av_log(s, AV_LOG_ERROR,

              "real-time buffer %d%% full! frame dropped!\n", buffer_fullness);

        return 1;

    }



    return 0;

}

static int shall_we_drop(AVFormatContext *s)

{

    struct dshow_ctx *ctx = s->priv_data;

    static const uint8_t dropscore[] = {62, 75, 87, 100};

    const int ndropscores = FF_ARRAY_ELEMS(dropscore);

    unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;



    if(dropscore[++ctx->video_frame_num%ndropscores] <= buffer_fullness) {

        av_log(s, AV_LOG_ERROR,

              "real-time buffer %d%% full! frame dropped!\n", buffer_fullness);

        return 1;

    }



    return 0;

}

static int shall_we_drop(AVFormatContext *s)     unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;               "real-time buffer %d%% full! frame dropped!\n", buffer_fullness);
static int FUNC_0(AVFormatContext *VAR_0)

{

    struct dshow_ctx *VAR_1 = VAR_0->priv_data;

    static const uint8_t VAR_2[] = {62, 75, 87, 100};

    const int VAR_3 = FF_ARRAY_ELEMS(VAR_2);

    unsigned int VAR_4 = (VAR_1->curbufsize*100)/VAR_0->max_picture_buffer;



    if(VAR_2[++VAR_1->video_frame_num%VAR_3] <= VAR_4) {

        av_log(VAR_0, AV_LOG_ERROR,

              "real-time buffer %d%% full! frame dropped!\n", VAR_4);

        return 1;

    }



    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0)
{ struct dshow_ctx *VAR_1 = VAR_0->priv_data; static const uint8_t VAR_2[] = {62, 75, 87, 100}; const int VAR_3 = FF_ARRAY_ELEMS(VAR_2); unsigned int VAR_4 = (VAR_1->curbufsize*100)/VAR_0->max_picture_buffer; if(VAR_2[++VAR_1->video_frame_num%VAR_3] <= VAR_4) { av_log(VAR_0, AV_LOG_ERROR,
"real-time buffer %d%% full! frame dropped!\n", VAR_4); return 1; } return 0; }