Revision 4e255822

View differences:

libavcodec/resample2.c
223 223
        }
224 224
    }
225 225
    *consumed= FFMAX(index, 0) >> c->phase_shift;
226
    index= FFMIN(index, 0);
226
    if(index>=0) index &= c->phase_mask;
227 227

  
228 228
    if(compensation_distance){
229 229
        compensation_distance -= dst_index;
tests/ffmpeg.regression.ref
117 117
1055276 ./data/out.wav
118 118
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
119 119
97983 ./data/a-ac3.rm
120
e1aa1d139e8e241cdf9be8ac8252dabb *./data/a-g726.wav
121
24330 ./data/a-g726.wav
122
2f1b2fdb2ebdf4250a850fdcc28b50d1 *./data/out.wav
123
97188 ./data/out.wav
120
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
121
24268 ./data/a-g726.wav
122
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
123
96940 ./data/out.wav
124 124
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
125 125
266288 ./data/a-adpcm_ima.wav
126 126
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav
tests/libav.regression.ref
25 25
fea20ced22451312dd463110e594eda6 *./data/b-libav.nut
26 26
332415 ./data/b-libav.nut
27 27
./data/b-libav.nut CRC=001a3415
28
e62f54ddedb85e0f605abf295a18a08e *./data/b-libav.dv
28
29a2c312bbc5b187491183a918556475 *./data/b-libav.dv
29 29
3600000 ./data/b-libav.dv
30
./data/b-libav.dv CRC=82e03e76
30
./data/b-libav.dv CRC=37b096b4
31 31
9a9da315747599f7718cc9a9a09c21ff *./data/b-libav.pbm
32 32
317075 ./data/b-libav.pbm
33 33
./data/b-libav.pbm CRC=a1057fd1
tests/rotozoom.regression.ref
117 117
1055276 ./data/out.wav
118 118
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
119 119
97983 ./data/a-ac3.rm
120
e1aa1d139e8e241cdf9be8ac8252dabb *./data/a-g726.wav
121
24330 ./data/a-g726.wav
122
2f1b2fdb2ebdf4250a850fdcc28b50d1 *./data/out.wav
123
97188 ./data/out.wav
120
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
121
24268 ./data/a-g726.wav
122
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
123
96940 ./data/out.wav
124 124
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
125 125
266288 ./data/a-adpcm_ima.wav
126 126
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav

Also available in: Unified diff