Revision f66e4f5f libavcodec/vp3.c

View differences:

libavcodec/vp3.c
633 633
                int qmin= 8<<(inter + !i);
634 634
                int qscale= i ? ac_scale_factor : dc_scale_factor;
635 635

  
636
                s->qmat[inter][plane][i]= clip((qscale * coeff)/100 * 4, qmin, 4096);
636
                s->qmat[inter][plane][i]= av_clip((qscale * coeff)/100 * 4, qmin, 4096);
637 637
            }
638 638
        }
639 639
    }
......
1729 1729
            (first_pixel[-2] - first_pixel[ 1])
1730 1730
         +3*(first_pixel[ 0] - first_pixel[-1]);
1731 1731
        filter_value = bounding_values[(filter_value + 4) >> 3];
1732
        first_pixel[-1] = clip_uint8(first_pixel[-1] + filter_value);
1733
        first_pixel[ 0] = clip_uint8(first_pixel[ 0] - filter_value);
1732
        first_pixel[-1] = av_clip_uint8(first_pixel[-1] + filter_value);
1733
        first_pixel[ 0] = av_clip_uint8(first_pixel[ 0] - filter_value);
1734 1734
    }
1735 1735
}
1736 1736

  
......
1746 1746
            (first_pixel[2 * nstride] - first_pixel[ stride])
1747 1747
         +3*(first_pixel[0          ] - first_pixel[nstride]);
1748 1748
        filter_value = bounding_values[(filter_value + 4) >> 3];
1749
        first_pixel[nstride] = clip_uint8(first_pixel[nstride] + filter_value);
1750
        first_pixel[0] = clip_uint8(first_pixel[0] - filter_value);
1749
        first_pixel[nstride] = av_clip_uint8(first_pixel[nstride] + filter_value);
1750
        first_pixel[0] = av_clip_uint8(first_pixel[0] - filter_value);
1751 1751
    }
1752 1752
}
1753 1753

  

Also available in: Unified diff