Revision a70c27e8 libavcodec/vc1dsp.c

View differences:

libavcodec/vc1dsp.c
314 314

  
315 315
/** Filter used to interpolate fractional pel values
316 316
 */
317
static always_inline uint8_t vc1_mspel_filter(const uint8_t *src, int stride, int mode, int r)
317
static always_inline int vc1_mspel_filter(const uint8_t *src, int stride, int mode, int r)
318 318
{
319 319
    switch(mode){
320 320
    case 0: //no shift
......
343 343
    tptr = tmp;
344 344
    for(j = 0; j < 11; j++) {
345 345
        for(i = 0; i < 8; i++)
346
            tptr[i] = vc1_mspel_filter(src + i, 1, m, r);
346
            tptr[i] = clip_uint8(vc1_mspel_filter(src + i, 1, m, r));
347 347
        src += stride;
348 348
        tptr += 8;
349 349
    }
......
353 353
    tptr = tmp + 8;
354 354
    for(j = 0; j < 8; j++) {
355 355
        for(i = 0; i < 8; i++)
356
            dst[i] = vc1_mspel_filter(tptr + i, 8, m, r);
356
            dst[i] = clip_uint8(vc1_mspel_filter(tptr + i, 8, m, r));
357 357
        dst += stride;
358 358
        tptr += 8;
359 359
    }

Also available in: Unified diff