Revision d76c3e07 libavdevice/vfwcap.c

View differences:

libavdevice/vfwcap.c
189 189
    const int ndropscores = sizeof(dropscore)/sizeof(dropscore[0]);
190 190
    unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;
191 191

  
192
    if(dropscore[++ctx->frame_num%ndropscores] < buffer_fullness) {
192
    if(dropscore[++ctx->frame_num%ndropscores] <= buffer_fullness) {
193 193
        av_log(ctx->s, AV_LOG_ERROR,
194 194
              "real-time buffer %d%% full! frame dropped!\n", buffer_fullness);
195 195
        return 1;

Also available in: Unified diff