Revision 1550f45a libavcodec/vp8.c

View differences:

libavcodec/vp8.c
1329 1329
        filter_level += s->lf_delta.mode[mb->mode];
1330 1330
    }
1331 1331

  
1332
/* Like av_clip for inputs 0 and max, where max is equal to (2^n-1) */
1333
#define POW2CLIP(x,max) (((x) & ~max) ? (-(x))>>31 & max : (x));
1334
    filter_level = POW2CLIP(filter_level, 63);
1332
    filter_level = av_clip_uintp2(filter_level, 6);
1335 1333

  
1336 1334
    interior_limit = filter_level;
1337 1335
    if (s->filter.sharpness) {

Also available in: Unified diff