Revision c54ac7a8

View differences:

libavcodec/vp8.c
1480 1480
        filter_level += s->lf_delta.ref[mb->ref_frame];
1481 1481
        filter_level += s->lf_delta.mode[mb->mode];
1482 1482
    }
1483
    filter_level = av_clip(filter_level, 0, 63);
1483

  
1484
/* Like av_clip for inputs 0 and max, where max is equal to (2^n-1) */
1485
#define POW2CLIP(x,max) (((x) & ~max) ? (-(x))>>31 & max : (x));
1486
    filter_level = POW2CLIP(filter_level, 63);
1484 1487

  
1485 1488
    interior_limit = filter_level;
1486 1489
    if (s->filter.sharpness) {

Also available in: Unified diff