Revision 4764fdc9

View differences:

libavutil/integer.c
96 96
    int i;
97 97

  
98 98
    for(i=0; i<AV_INTEGER_SIZE; i++){
99
        int index= i + (s>>4);
99
        unsigned int index= i + (s>>4);
100 100
        unsigned int v=0;
101
        if(index+1<AV_INTEGER_SIZE && index+1>=0) v = a.v[index+1]<<16;
102
        if(index  <AV_INTEGER_SIZE && index  >=0) v+= a.v[index  ];
101
        if(index+1<AV_INTEGER_SIZE) v = a.v[index+1]<<16;
102
        if(index  <AV_INTEGER_SIZE) v+= a.v[index  ];
103 103
        out.v[i]= v >> (s&15);
104 104
    }
105 105
    return out;

Also available in: Unified diff