static int shall_we_drop(AVFormatContext *s, int index)

{

    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[index]*100)/s->max_picture_buffer;



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

        av_log(s, AV_LOG_ERROR,

              "real-time buffer[%d] too full (%d%% of size: %d)! frame dropped!\n", index, buffer_fullness, s->max_picture_buffer);

        return 1;

    }



    return 0;

}

static int shall_we_drop(AVFormatContext *s, int index)

{

    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[index]*100)/s->max_picture_buffer;



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

        av_log(s, AV_LOG_ERROR,

              "real-time buffer[%d] too full (%d%% of size: %d)! frame dropped!\n", index, buffer_fullness, s->max_picture_buffer);

        return 1;

    }



    return 0;

}

static int shall_we_drop(AVFormatContext *s, int index)               "real-time buffer[%d] too full (%d%% of size: %d)! frame dropped!\n", index, buffer_fullness, s->max_picture_buffer);
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)

{

    struct dshow_ctx *VAR_2 = VAR_0->priv_data;

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

    const int VAR_4 = FF_ARRAY_ELEMS(VAR_3);

    unsigned int VAR_5 = (VAR_2->curbufsize[VAR_1]*100)/VAR_0->max_picture_buffer;



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

        av_log(VAR_0, AV_LOG_ERROR,

              "real-time buffer[%d] too full (%d%% of size: %d)! frame dropped!\n", VAR_1, VAR_5, VAR_0->max_picture_buffer);

        return 1;

    }



    return 0;

}

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