Revision 187a5379 libavcodec/dsputil.c

View differences:

libavcodec/dsputil.c
3827 3827
{
3828 3828

  
3829 3829
    if(a > mini) return mini;
3830
    else if((a^(1<<31)) > maxisign) return maxi;
3830
    else if((a^(1U<<31)) > maxisign) return maxi;
3831 3831
    else return a;
3832 3832
}
3833 3833

  
......
3835 3835
    int i;
3836 3836
    uint32_t mini = *(uint32_t*)min;
3837 3837
    uint32_t maxi = *(uint32_t*)max;
3838
    uint32_t maxisign = maxi ^ (1<<31);
3838
    uint32_t maxisign = maxi ^ (1U<<31);
3839 3839
    uint32_t *dsti = (uint32_t*)dst;
3840 3840
    const uint32_t *srci = (const uint32_t*)src;
3841 3841
    for(i=0; i<len; i+=8) {

Also available in: Unified diff