Fixed buffer overflows in resamplers.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 28 Dec 2009 08:28:24 +0000
changeset 3602bfa8d34ce03a
parent 3601 240a7700a271
child 3603 847549156244
Fixed buffer overflows in resamplers.

I'm not confident this is a complete fix, but I'm not confident the current
resamplers are really worth keeping at all, either.
src/audio/SDL_audiotypecvt.c
src/audio/sdlgenaudiocvt.pl
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Thu Dec 24 21:00:42 2009 +0000
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon Dec 28 08:28:24 2009 +0000
     1.3 @@ -7109,7 +7109,7 @@
     1.4      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
     1.5      const Uint8 *target = ((const Uint8 *) cvt->buf) - 1;
     1.6      Sint16 last_sample0 = (Sint16) src[0];
     1.7 -    while (dst != target) {
     1.8 +    while (dst > target) {
     1.9          const Sint16 sample0 = (Sint16) src[0];
    1.10          src--;
    1.11          dst[1] = (Uint8) ((sample0 + last_sample0) >> 1);
    1.12 @@ -7137,7 +7137,7 @@
    1.13      const Uint8 *src = (Uint8 *) cvt->buf;
    1.14      const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
    1.15      Sint16 last_sample0 = (Sint16) src[0];
    1.16 -    while (dst != target) {
    1.17 +    while (dst < target) {
    1.18          const Sint16 sample0 = (Sint16) src[0];
    1.19          src += 2;
    1.20          dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
    1.21 @@ -7164,7 +7164,7 @@
    1.22      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
    1.23      const Uint8 *target = ((const Uint8 *) cvt->buf) - 1;
    1.24      Sint16 last_sample0 = (Sint16) src[0];
    1.25 -    while (dst != target) {
    1.26 +    while (dst > target) {
    1.27          const Sint16 sample0 = (Sint16) src[0];
    1.28          src--;
    1.29          dst[3] = (Uint8) sample0;
    1.30 @@ -7194,7 +7194,7 @@
    1.31      const Uint8 *src = (Uint8 *) cvt->buf;
    1.32      const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
    1.33      Sint16 last_sample0 = (Sint16) src[0];
    1.34 -    while (dst != target) {
    1.35 +    while (dst < target) {
    1.36          const Sint16 sample0 = (Sint16) src[0];
    1.37          src += 4;
    1.38          dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
    1.39 @@ -7222,7 +7222,7 @@
    1.40      const Uint8 *target = ((const Uint8 *) cvt->buf) - 2;
    1.41      Sint16 last_sample1 = (Sint16) src[1];
    1.42      Sint16 last_sample0 = (Sint16) src[0];
    1.43 -    while (dst != target) {
    1.44 +    while (dst > target) {
    1.45          const Sint16 sample1 = (Sint16) src[1];
    1.46          const Sint16 sample0 = (Sint16) src[0];
    1.47          src -= 2;
    1.48 @@ -7255,7 +7255,7 @@
    1.49      const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
    1.50      Sint16 last_sample0 = (Sint16) src[0];
    1.51      Sint16 last_sample1 = (Sint16) src[1];
    1.52 -    while (dst != target) {
    1.53 +    while (dst < target) {
    1.54          const Sint16 sample0 = (Sint16) src[0];
    1.55          const Sint16 sample1 = (Sint16) src[1];
    1.56          src += 4;
    1.57 @@ -7286,7 +7286,7 @@
    1.58      const Uint8 *target = ((const Uint8 *) cvt->buf) - 2;
    1.59      Sint16 last_sample1 = (Sint16) src[1];
    1.60      Sint16 last_sample0 = (Sint16) src[0];
    1.61 -    while (dst != target) {
    1.62 +    while (dst > target) {
    1.63          const Sint16 sample1 = (Sint16) src[1];
    1.64          const Sint16 sample0 = (Sint16) src[0];
    1.65          src -= 2;
    1.66 @@ -7323,7 +7323,7 @@
    1.67      const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
    1.68      Sint16 last_sample0 = (Sint16) src[0];
    1.69      Sint16 last_sample1 = (Sint16) src[1];
    1.70 -    while (dst != target) {
    1.71 +    while (dst < target) {
    1.72          const Sint16 sample0 = (Sint16) src[0];
    1.73          const Sint16 sample1 = (Sint16) src[1];
    1.74          src += 8;
    1.75 @@ -7356,7 +7356,7 @@
    1.76      Sint16 last_sample2 = (Sint16) src[2];
    1.77      Sint16 last_sample1 = (Sint16) src[1];
    1.78      Sint16 last_sample0 = (Sint16) src[0];
    1.79 -    while (dst != target) {
    1.80 +    while (dst > target) {
    1.81          const Sint16 sample3 = (Sint16) src[3];
    1.82          const Sint16 sample2 = (Sint16) src[2];
    1.83          const Sint16 sample1 = (Sint16) src[1];
    1.84 @@ -7399,7 +7399,7 @@
    1.85      Sint16 last_sample1 = (Sint16) src[1];
    1.86      Sint16 last_sample2 = (Sint16) src[2];
    1.87      Sint16 last_sample3 = (Sint16) src[3];
    1.88 -    while (dst != target) {
    1.89 +    while (dst < target) {
    1.90          const Sint16 sample0 = (Sint16) src[0];
    1.91          const Sint16 sample1 = (Sint16) src[1];
    1.92          const Sint16 sample2 = (Sint16) src[2];
    1.93 @@ -7438,7 +7438,7 @@
    1.94      Sint16 last_sample2 = (Sint16) src[2];
    1.95      Sint16 last_sample1 = (Sint16) src[1];
    1.96      Sint16 last_sample0 = (Sint16) src[0];
    1.97 -    while (dst != target) {
    1.98 +    while (dst > target) {
    1.99          const Sint16 sample3 = (Sint16) src[3];
   1.100          const Sint16 sample2 = (Sint16) src[2];
   1.101          const Sint16 sample1 = (Sint16) src[1];
   1.102 @@ -7489,7 +7489,7 @@
   1.103      Sint16 last_sample1 = (Sint16) src[1];
   1.104      Sint16 last_sample2 = (Sint16) src[2];
   1.105      Sint16 last_sample3 = (Sint16) src[3];
   1.106 -    while (dst != target) {
   1.107 +    while (dst < target) {
   1.108          const Sint16 sample0 = (Sint16) src[0];
   1.109          const Sint16 sample1 = (Sint16) src[1];
   1.110          const Sint16 sample2 = (Sint16) src[2];
   1.111 @@ -7530,7 +7530,7 @@
   1.112      Sint16 last_sample2 = (Sint16) src[2];
   1.113      Sint16 last_sample1 = (Sint16) src[1];
   1.114      Sint16 last_sample0 = (Sint16) src[0];
   1.115 -    while (dst != target) {
   1.116 +    while (dst > target) {
   1.117          const Sint16 sample5 = (Sint16) src[5];
   1.118          const Sint16 sample4 = (Sint16) src[4];
   1.119          const Sint16 sample3 = (Sint16) src[3];
   1.120 @@ -7583,7 +7583,7 @@
   1.121      Sint16 last_sample3 = (Sint16) src[3];
   1.122      Sint16 last_sample4 = (Sint16) src[4];
   1.123      Sint16 last_sample5 = (Sint16) src[5];
   1.124 -    while (dst != target) {
   1.125 +    while (dst < target) {
   1.126          const Sint16 sample0 = (Sint16) src[0];
   1.127          const Sint16 sample1 = (Sint16) src[1];
   1.128          const Sint16 sample2 = (Sint16) src[2];
   1.129 @@ -7630,7 +7630,7 @@
   1.130      Sint16 last_sample2 = (Sint16) src[2];
   1.131      Sint16 last_sample1 = (Sint16) src[1];
   1.132      Sint16 last_sample0 = (Sint16) src[0];
   1.133 -    while (dst != target) {
   1.134 +    while (dst > target) {
   1.135          const Sint16 sample5 = (Sint16) src[5];
   1.136          const Sint16 sample4 = (Sint16) src[4];
   1.137          const Sint16 sample3 = (Sint16) src[3];
   1.138 @@ -7695,7 +7695,7 @@
   1.139      Sint16 last_sample3 = (Sint16) src[3];
   1.140      Sint16 last_sample4 = (Sint16) src[4];
   1.141      Sint16 last_sample5 = (Sint16) src[5];
   1.142 -    while (dst != target) {
   1.143 +    while (dst < target) {
   1.144          const Sint16 sample0 = (Sint16) src[0];
   1.145          const Sint16 sample1 = (Sint16) src[1];
   1.146          const Sint16 sample2 = (Sint16) src[2];
   1.147 @@ -7744,7 +7744,7 @@
   1.148      Sint16 last_sample2 = (Sint16) src[2];
   1.149      Sint16 last_sample1 = (Sint16) src[1];
   1.150      Sint16 last_sample0 = (Sint16) src[0];
   1.151 -    while (dst != target) {
   1.152 +    while (dst > target) {
   1.153          const Sint16 sample7 = (Sint16) src[7];
   1.154          const Sint16 sample6 = (Sint16) src[6];
   1.155          const Sint16 sample5 = (Sint16) src[5];
   1.156 @@ -7807,7 +7807,7 @@
   1.157      Sint16 last_sample5 = (Sint16) src[5];
   1.158      Sint16 last_sample6 = (Sint16) src[6];
   1.159      Sint16 last_sample7 = (Sint16) src[7];
   1.160 -    while (dst != target) {
   1.161 +    while (dst < target) {
   1.162          const Sint16 sample0 = (Sint16) src[0];
   1.163          const Sint16 sample1 = (Sint16) src[1];
   1.164          const Sint16 sample2 = (Sint16) src[2];
   1.165 @@ -7862,7 +7862,7 @@
   1.166      Sint16 last_sample2 = (Sint16) src[2];
   1.167      Sint16 last_sample1 = (Sint16) src[1];
   1.168      Sint16 last_sample0 = (Sint16) src[0];
   1.169 -    while (dst != target) {
   1.170 +    while (dst > target) {
   1.171          const Sint16 sample7 = (Sint16) src[7];
   1.172          const Sint16 sample6 = (Sint16) src[6];
   1.173          const Sint16 sample5 = (Sint16) src[5];
   1.174 @@ -7941,7 +7941,7 @@
   1.175      Sint16 last_sample5 = (Sint16) src[5];
   1.176      Sint16 last_sample6 = (Sint16) src[6];
   1.177      Sint16 last_sample7 = (Sint16) src[7];
   1.178 -    while (dst != target) {
   1.179 +    while (dst < target) {
   1.180          const Sint16 sample0 = (Sint16) src[0];
   1.181          const Sint16 sample1 = (Sint16) src[1];
   1.182          const Sint16 sample2 = (Sint16) src[2];
   1.183 @@ -7989,7 +7989,7 @@
   1.184      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.185      const Sint8 *target = ((const Sint8 *) cvt->buf) - 1;
   1.186      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.187 -    while (dst != target) {
   1.188 +    while (dst > target) {
   1.189          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.190          src--;
   1.191          dst[1] = (Sint8) ((sample0 + last_sample0) >> 1);
   1.192 @@ -8017,7 +8017,7 @@
   1.193      const Sint8 *src = (Sint8 *) cvt->buf;
   1.194      const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
   1.195      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.196 -    while (dst != target) {
   1.197 +    while (dst < target) {
   1.198          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.199          src += 2;
   1.200          dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
   1.201 @@ -8044,7 +8044,7 @@
   1.202      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.203      const Sint8 *target = ((const Sint8 *) cvt->buf) - 1;
   1.204      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.205 -    while (dst != target) {
   1.206 +    while (dst > target) {
   1.207          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.208          src--;
   1.209          dst[3] = (Sint8) sample0;
   1.210 @@ -8074,7 +8074,7 @@
   1.211      const Sint8 *src = (Sint8 *) cvt->buf;
   1.212      const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
   1.213      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.214 -    while (dst != target) {
   1.215 +    while (dst < target) {
   1.216          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.217          src += 4;
   1.218          dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
   1.219 @@ -8102,7 +8102,7 @@
   1.220      const Sint8 *target = ((const Sint8 *) cvt->buf) - 2;
   1.221      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.222      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.223 -    while (dst != target) {
   1.224 +    while (dst > target) {
   1.225          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.226          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.227          src -= 2;
   1.228 @@ -8135,7 +8135,7 @@
   1.229      const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
   1.230      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.231      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.232 -    while (dst != target) {
   1.233 +    while (dst < target) {
   1.234          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.235          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.236          src += 4;
   1.237 @@ -8166,7 +8166,7 @@
   1.238      const Sint8 *target = ((const Sint8 *) cvt->buf) - 2;
   1.239      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.240      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.241 -    while (dst != target) {
   1.242 +    while (dst > target) {
   1.243          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.244          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.245          src -= 2;
   1.246 @@ -8203,7 +8203,7 @@
   1.247      const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
   1.248      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.249      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.250 -    while (dst != target) {
   1.251 +    while (dst < target) {
   1.252          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.253          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.254          src += 8;
   1.255 @@ -8236,7 +8236,7 @@
   1.256      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.257      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.258      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.259 -    while (dst != target) {
   1.260 +    while (dst > target) {
   1.261          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
   1.262          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.263          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.264 @@ -8279,7 +8279,7 @@
   1.265      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.266      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.267      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
   1.268 -    while (dst != target) {
   1.269 +    while (dst < target) {
   1.270          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.271          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.272          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.273 @@ -8318,7 +8318,7 @@
   1.274      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.275      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.276      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.277 -    while (dst != target) {
   1.278 +    while (dst > target) {
   1.279          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
   1.280          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.281          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.282 @@ -8369,7 +8369,7 @@
   1.283      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.284      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.285      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
   1.286 -    while (dst != target) {
   1.287 +    while (dst < target) {
   1.288          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.289          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.290          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.291 @@ -8410,7 +8410,7 @@
   1.292      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.293      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.294      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.295 -    while (dst != target) {
   1.296 +    while (dst > target) {
   1.297          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
   1.298          const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
   1.299          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
   1.300 @@ -8463,7 +8463,7 @@
   1.301      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
   1.302      Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
   1.303      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
   1.304 -    while (dst != target) {
   1.305 +    while (dst < target) {
   1.306          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.307          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.308          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.309 @@ -8510,7 +8510,7 @@
   1.310      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.311      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.312      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.313 -    while (dst != target) {
   1.314 +    while (dst > target) {
   1.315          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
   1.316          const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
   1.317          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
   1.318 @@ -8575,7 +8575,7 @@
   1.319      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
   1.320      Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
   1.321      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
   1.322 -    while (dst != target) {
   1.323 +    while (dst < target) {
   1.324          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.325          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.326          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.327 @@ -8624,7 +8624,7 @@
   1.328      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.329      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.330      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.331 -    while (dst != target) {
   1.332 +    while (dst > target) {
   1.333          const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
   1.334          const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
   1.335          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
   1.336 @@ -8687,7 +8687,7 @@
   1.337      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
   1.338      Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
   1.339      Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
   1.340 -    while (dst != target) {
   1.341 +    while (dst < target) {
   1.342          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.343          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.344          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.345 @@ -8742,7 +8742,7 @@
   1.346      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
   1.347      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
   1.348      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.349 -    while (dst != target) {
   1.350 +    while (dst > target) {
   1.351          const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
   1.352          const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
   1.353          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
   1.354 @@ -8821,7 +8821,7 @@
   1.355      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
   1.356      Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
   1.357      Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
   1.358 -    while (dst != target) {
   1.359 +    while (dst < target) {
   1.360          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.361          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
   1.362          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
   1.363 @@ -8869,7 +8869,7 @@
   1.364      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.365      const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.366      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.367 -    while (dst != target) {
   1.368 +    while (dst > target) {
   1.369          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.370          src--;
   1.371          dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.372 @@ -8897,7 +8897,7 @@
   1.373      const Uint16 *src = (Uint16 *) cvt->buf;
   1.374      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.375      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.376 -    while (dst != target) {
   1.377 +    while (dst < target) {
   1.378          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.379          src += 2;
   1.380          dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.381 @@ -8924,7 +8924,7 @@
   1.382      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.383      const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.384      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.385 -    while (dst != target) {
   1.386 +    while (dst > target) {
   1.387          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.388          src--;
   1.389          dst[3] = (Uint16) sample0;
   1.390 @@ -8954,7 +8954,7 @@
   1.391      const Uint16 *src = (Uint16 *) cvt->buf;
   1.392      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.393      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.394 -    while (dst != target) {
   1.395 +    while (dst < target) {
   1.396          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.397          src += 4;
   1.398          dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.399 @@ -8982,7 +8982,7 @@
   1.400      const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.401      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.402      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.403 -    while (dst != target) {
   1.404 +    while (dst > target) {
   1.405          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.406          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.407          src -= 2;
   1.408 @@ -9015,7 +9015,7 @@
   1.409      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.410      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.411      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.412 -    while (dst != target) {
   1.413 +    while (dst < target) {
   1.414          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.415          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.416          src += 4;
   1.417 @@ -9046,7 +9046,7 @@
   1.418      const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.419      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.420      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.421 -    while (dst != target) {
   1.422 +    while (dst > target) {
   1.423          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.424          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.425          src -= 2;
   1.426 @@ -9083,7 +9083,7 @@
   1.427      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.428      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.429      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.430 -    while (dst != target) {
   1.431 +    while (dst < target) {
   1.432          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.433          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.434          src += 8;
   1.435 @@ -9116,7 +9116,7 @@
   1.436      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.437      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.438      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.439 -    while (dst != target) {
   1.440 +    while (dst > target) {
   1.441          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.442          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.443          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.444 @@ -9159,7 +9159,7 @@
   1.445      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.446      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.447      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.448 -    while (dst != target) {
   1.449 +    while (dst < target) {
   1.450          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.451          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.452          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.453 @@ -9198,7 +9198,7 @@
   1.454      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.455      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.456      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.457 -    while (dst != target) {
   1.458 +    while (dst > target) {
   1.459          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.460          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.461          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.462 @@ -9249,7 +9249,7 @@
   1.463      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.464      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.465      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.466 -    while (dst != target) {
   1.467 +    while (dst < target) {
   1.468          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.469          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.470          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.471 @@ -9290,7 +9290,7 @@
   1.472      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.473      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.474      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.475 -    while (dst != target) {
   1.476 +    while (dst > target) {
   1.477          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.478          const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
   1.479          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.480 @@ -9343,7 +9343,7 @@
   1.481      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.482      Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
   1.483      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.484 -    while (dst != target) {
   1.485 +    while (dst < target) {
   1.486          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.487          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.488          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.489 @@ -9390,7 +9390,7 @@
   1.490      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.491      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.492      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.493 -    while (dst != target) {
   1.494 +    while (dst > target) {
   1.495          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.496          const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
   1.497          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.498 @@ -9455,7 +9455,7 @@
   1.499      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
   1.500      Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
   1.501      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.502 -    while (dst != target) {
   1.503 +    while (dst < target) {
   1.504          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.505          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.506          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.507 @@ -9504,7 +9504,7 @@
   1.508      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.509      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.510      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.511 -    while (dst != target) {
   1.512 +    while (dst > target) {
   1.513          const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
   1.514          const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
   1.515          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.516 @@ -9567,7 +9567,7 @@
   1.517      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.518      Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
   1.519      Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
   1.520 -    while (dst != target) {
   1.521 +    while (dst < target) {
   1.522          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.523          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.524          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.525 @@ -9622,7 +9622,7 @@
   1.526      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.527      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.528      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.529 -    while (dst != target) {
   1.530 +    while (dst > target) {
   1.531          const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
   1.532          const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
   1.533          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.534 @@ -9701,7 +9701,7 @@
   1.535      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
   1.536      Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
   1.537      Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
   1.538 -    while (dst != target) {
   1.539 +    while (dst < target) {
   1.540          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
   1.541          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
   1.542          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
   1.543 @@ -9749,7 +9749,7 @@
   1.544      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.545      const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.546      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.547 -    while (dst != target) {
   1.548 +    while (dst > target) {
   1.549          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.550          src--;
   1.551          dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.552 @@ -9777,7 +9777,7 @@
   1.553      const Sint16 *src = (Sint16 *) cvt->buf;
   1.554      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.555      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.556 -    while (dst != target) {
   1.557 +    while (dst < target) {
   1.558          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.559          src += 2;
   1.560          dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.561 @@ -9804,7 +9804,7 @@
   1.562      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.563      const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.564      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.565 -    while (dst != target) {
   1.566 +    while (dst > target) {
   1.567          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.568          src--;
   1.569          dst[3] = (Sint16) sample0;
   1.570 @@ -9834,7 +9834,7 @@
   1.571      const Sint16 *src = (Sint16 *) cvt->buf;
   1.572      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.573      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.574 -    while (dst != target) {
   1.575 +    while (dst < target) {
   1.576          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.577          src += 4;
   1.578          dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.579 @@ -9862,7 +9862,7 @@
   1.580      const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.581      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.582      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.583 -    while (dst != target) {
   1.584 +    while (dst > target) {
   1.585          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.586          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.587          src -= 2;
   1.588 @@ -9895,7 +9895,7 @@
   1.589      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.590      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.591      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.592 -    while (dst != target) {
   1.593 +    while (dst < target) {
   1.594          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.595          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.596          src += 4;
   1.597 @@ -9926,7 +9926,7 @@
   1.598      const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.599      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.600      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.601 -    while (dst != target) {
   1.602 +    while (dst > target) {
   1.603          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.604          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.605          src -= 2;
   1.606 @@ -9963,7 +9963,7 @@
   1.607      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.608      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.609      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.610 -    while (dst != target) {
   1.611 +    while (dst < target) {
   1.612          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.613          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.614          src += 8;
   1.615 @@ -9996,7 +9996,7 @@
   1.616      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.617      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.618      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.619 -    while (dst != target) {
   1.620 +    while (dst > target) {
   1.621          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.622          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.623          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.624 @@ -10039,7 +10039,7 @@
   1.625      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.626      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.627      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.628 -    while (dst != target) {
   1.629 +    while (dst < target) {
   1.630          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.631          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.632          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.633 @@ -10078,7 +10078,7 @@
   1.634      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.635      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.636      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.637 -    while (dst != target) {
   1.638 +    while (dst > target) {
   1.639          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.640          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.641          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.642 @@ -10129,7 +10129,7 @@
   1.643      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.644      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.645      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.646 -    while (dst != target) {
   1.647 +    while (dst < target) {
   1.648          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.649          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.650          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.651 @@ -10170,7 +10170,7 @@
   1.652      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.653      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.654      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.655 -    while (dst != target) {
   1.656 +    while (dst > target) {
   1.657          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.658          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
   1.659          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.660 @@ -10223,7 +10223,7 @@
   1.661      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.662      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
   1.663      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.664 -    while (dst != target) {
   1.665 +    while (dst < target) {
   1.666          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.667          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.668          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.669 @@ -10270,7 +10270,7 @@
   1.670      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.671      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.672      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.673 -    while (dst != target) {
   1.674 +    while (dst > target) {
   1.675          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.676          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
   1.677          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.678 @@ -10335,7 +10335,7 @@
   1.679      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
   1.680      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
   1.681      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.682 -    while (dst != target) {
   1.683 +    while (dst < target) {
   1.684          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.685          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.686          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.687 @@ -10384,7 +10384,7 @@
   1.688      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.689      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.690      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.691 -    while (dst != target) {
   1.692 +    while (dst > target) {
   1.693          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
   1.694          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
   1.695          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.696 @@ -10447,7 +10447,7 @@
   1.697      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.698      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
   1.699      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
   1.700 -    while (dst != target) {
   1.701 +    while (dst < target) {
   1.702          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.703          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.704          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.705 @@ -10502,7 +10502,7 @@
   1.706      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.707      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.708      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.709 -    while (dst != target) {
   1.710 +    while (dst > target) {
   1.711          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
   1.712          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
   1.713          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.714 @@ -10581,7 +10581,7 @@
   1.715      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
   1.716      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
   1.717      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
   1.718 -    while (dst != target) {
   1.719 +    while (dst < target) {
   1.720          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
   1.721          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
   1.722          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
   1.723 @@ -10629,7 +10629,7 @@
   1.724      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.725      const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.726      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.727 -    while (dst != target) {
   1.728 +    while (dst > target) {
   1.729          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.730          src--;
   1.731          dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.732 @@ -10657,7 +10657,7 @@
   1.733      const Uint16 *src = (Uint16 *) cvt->buf;
   1.734      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.735      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.736 -    while (dst != target) {
   1.737 +    while (dst < target) {
   1.738          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.739          src += 2;
   1.740          dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.741 @@ -10684,7 +10684,7 @@
   1.742      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.743      const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.744      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.745 -    while (dst != target) {
   1.746 +    while (dst > target) {
   1.747          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.748          src--;
   1.749          dst[3] = (Uint16) sample0;
   1.750 @@ -10714,7 +10714,7 @@
   1.751      const Uint16 *src = (Uint16 *) cvt->buf;
   1.752      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.753      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.754 -    while (dst != target) {
   1.755 +    while (dst < target) {
   1.756          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.757          src += 4;
   1.758          dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
   1.759 @@ -10742,7 +10742,7 @@
   1.760      const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.761      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.762      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.763 -    while (dst != target) {
   1.764 +    while (dst > target) {
   1.765          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.766          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.767          src -= 2;
   1.768 @@ -10775,7 +10775,7 @@
   1.769      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.770      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.771      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.772 -    while (dst != target) {
   1.773 +    while (dst < target) {
   1.774          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.775          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.776          src += 4;
   1.777 @@ -10806,7 +10806,7 @@
   1.778      const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.779      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.780      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.781 -    while (dst != target) {
   1.782 +    while (dst > target) {
   1.783          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.784          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.785          src -= 2;
   1.786 @@ -10843,7 +10843,7 @@
   1.787      const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
   1.788      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.789      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.790 -    while (dst != target) {
   1.791 +    while (dst < target) {
   1.792          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.793          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.794          src += 8;
   1.795 @@ -10876,7 +10876,7 @@
   1.796      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.797      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.798      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.799 -    while (dst != target) {
   1.800 +    while (dst > target) {
   1.801          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.802          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.803          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.804 @@ -10919,7 +10919,7 @@
   1.805      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.806      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.807      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.808 -    while (dst != target) {
   1.809 +    while (dst < target) {
   1.810          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.811          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.812          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.813 @@ -10958,7 +10958,7 @@
   1.814      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.815      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.816      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.817 -    while (dst != target) {
   1.818 +    while (dst > target) {
   1.819          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.820          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.821          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.822 @@ -11009,7 +11009,7 @@
   1.823      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.824      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.825      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.826 -    while (dst != target) {
   1.827 +    while (dst < target) {
   1.828          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.829          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.830          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.831 @@ -11050,7 +11050,7 @@
   1.832      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.833      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.834      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.835 -    while (dst != target) {
   1.836 +    while (dst > target) {
   1.837          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.838          const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
   1.839          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.840 @@ -11103,7 +11103,7 @@
   1.841      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.842      Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
   1.843      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.844 -    while (dst != target) {
   1.845 +    while (dst < target) {
   1.846          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.847          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.848          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.849 @@ -11150,7 +11150,7 @@
   1.850      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.851      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.852      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.853 -    while (dst != target) {
   1.854 +    while (dst > target) {
   1.855          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.856          const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
   1.857          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.858 @@ -11215,7 +11215,7 @@
   1.859      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
   1.860      Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
   1.861      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.862 -    while (dst != target) {
   1.863 +    while (dst < target) {
   1.864          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.865          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.866          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.867 @@ -11264,7 +11264,7 @@
   1.868      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.869      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.870      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.871 -    while (dst != target) {
   1.872 +    while (dst > target) {
   1.873          const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
   1.874          const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
   1.875          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.876 @@ -11327,7 +11327,7 @@
   1.877      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.878      Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
   1.879      Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
   1.880 -    while (dst != target) {
   1.881 +    while (dst < target) {
   1.882          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.883          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.884          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.885 @@ -11382,7 +11382,7 @@
   1.886      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.887      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.888      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.889 -    while (dst != target) {
   1.890 +    while (dst > target) {
   1.891          const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
   1.892          const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
   1.893          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.894 @@ -11461,7 +11461,7 @@
   1.895      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
   1.896      Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
   1.897      Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
   1.898 -    while (dst != target) {
   1.899 +    while (dst < target) {
   1.900          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
   1.901          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
   1.902          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
   1.903 @@ -11509,7 +11509,7 @@
   1.904      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.905      const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.906      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.907 -    while (dst != target) {
   1.908 +    while (dst > target) {
   1.909          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.910          src--;
   1.911          dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.912 @@ -11537,7 +11537,7 @@
   1.913      const Sint16 *src = (Sint16 *) cvt->buf;
   1.914      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.915      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.916 -    while (dst != target) {
   1.917 +    while (dst < target) {
   1.918          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.919          src += 2;
   1.920          dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.921 @@ -11564,7 +11564,7 @@
   1.922      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.923      const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.924      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.925 -    while (dst != target) {
   1.926 +    while (dst > target) {
   1.927          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.928          src--;
   1.929          dst[3] = (Sint16) sample0;
   1.930 @@ -11594,7 +11594,7 @@
   1.931      const Sint16 *src = (Sint16 *) cvt->buf;
   1.932      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.933      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.934 -    while (dst != target) {
   1.935 +    while (dst < target) {
   1.936          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.937          src += 4;
   1.938          dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
   1.939 @@ -11622,7 +11622,7 @@
   1.940      const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.941      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.942      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.943 -    while (dst != target) {
   1.944 +    while (dst > target) {
   1.945          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.946          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.947          src -= 2;
   1.948 @@ -11655,7 +11655,7 @@
   1.949      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.950      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.951      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.952 -    while (dst != target) {
   1.953 +    while (dst < target) {
   1.954          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.955          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.956          src += 4;
   1.957 @@ -11686,7 +11686,7 @@
   1.958      const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.959      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.960      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.961 -    while (dst != target) {
   1.962 +    while (dst > target) {
   1.963          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.964          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.965          src -= 2;
   1.966 @@ -11723,7 +11723,7 @@
   1.967      const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
   1.968      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.969      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.970 -    while (dst != target) {
   1.971 +    while (dst < target) {
   1.972          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.973          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.974          src += 8;
   1.975 @@ -11756,7 +11756,7 @@
   1.976      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
   1.977      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.978      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.979 -    while (dst != target) {
   1.980 +    while (dst > target) {
   1.981          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
   1.982          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
   1.983          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.984 @@ -11799,7 +11799,7 @@
   1.985      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.986      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
   1.987      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
   1.988 -    while (dst != target) {
   1.989 +    while (dst < target) {
   1.990          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.991          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.992          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
   1.993 @@ -11838,7 +11838,7 @@
   1.994      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
   1.995      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
   1.996      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
   1.997 -    while (dst != target) {
   1.998 +    while (dst > target) {
   1.999          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1000          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1001          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1002 @@ -11889,7 +11889,7 @@
  1.1003      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1004      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1005      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1006 -    while (dst != target) {
  1.1007 +    while (dst < target) {
  1.1008          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1009          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1010          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1011 @@ -11930,7 +11930,7 @@
  1.1012      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1013      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1014      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1015 -    while (dst != target) {
  1.1016 +    while (dst > target) {
  1.1017          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1018          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1019          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1020 @@ -11983,7 +11983,7 @@
  1.1021      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1022      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1023      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1024 -    while (dst != target) {
  1.1025 +    while (dst < target) {
  1.1026          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1027          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1028          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1029 @@ -12030,7 +12030,7 @@
  1.1030      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1031      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1032      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1033 -    while (dst != target) {
  1.1034 +    while (dst > target) {
  1.1035          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1036          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1037          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1038 @@ -12095,7 +12095,7 @@
  1.1039      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1040      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1041      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1042 -    while (dst != target) {
  1.1043 +    while (dst < target) {
  1.1044          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1045          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1046          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1047 @@ -12144,7 +12144,7 @@
  1.1048      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1049      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1050      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1051 -    while (dst != target) {
  1.1052 +    while (dst > target) {
  1.1053          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1054          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1055          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1056 @@ -12207,7 +12207,7 @@
  1.1057      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1058      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1059      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1060 -    while (dst != target) {
  1.1061 +    while (dst < target) {
  1.1062          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1063          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1064          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1065 @@ -12262,7 +12262,7 @@
  1.1066      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1067      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1068      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1069 -    while (dst != target) {
  1.1070 +    while (dst > target) {
  1.1071          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1072          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1073          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1074 @@ -12341,7 +12341,7 @@
  1.1075      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1076      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1077      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1078 -    while (dst != target) {
  1.1079 +    while (dst < target) {
  1.1080          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1081          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1082          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1083 @@ -12389,7 +12389,7 @@
  1.1084      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1085      const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1086      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1087 -    while (dst != target) {
  1.1088 +    while (dst > target) {
  1.1089          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1090          src--;
  1.1091          dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1092 @@ -12417,7 +12417,7 @@
  1.1093      const Sint32 *src = (Sint32 *) cvt->buf;
  1.1094      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1095      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1096 -    while (dst != target) {
  1.1097 +    while (dst < target) {
  1.1098          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1099          src += 2;
  1.1100          dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1101 @@ -12444,7 +12444,7 @@
  1.1102      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1103      const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1104      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1105 -    while (dst != target) {
  1.1106 +    while (dst > target) {
  1.1107          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1108          src--;
  1.1109          dst[3] = (Sint32) sample0;
  1.1110 @@ -12474,7 +12474,7 @@
  1.1111      const Sint32 *src = (Sint32 *) cvt->buf;
  1.1112      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1113      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1114 -    while (dst != target) {
  1.1115 +    while (dst < target) {
  1.1116          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1117          src += 4;
  1.1118          dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1119 @@ -12502,7 +12502,7 @@
  1.1120      const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1121      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1122      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1123 -    while (dst != target) {
  1.1124 +    while (dst > target) {
  1.1125          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1126          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1127          src -= 2;
  1.1128 @@ -12535,7 +12535,7 @@
  1.1129      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1130      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1131      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1132 -    while (dst != target) {
  1.1133 +    while (dst < target) {
  1.1134          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1135          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1136          src += 4;
  1.1137 @@ -12566,7 +12566,7 @@
  1.1138      const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1139      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1140      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1141 -    while (dst != target) {
  1.1142 +    while (dst > target) {
  1.1143          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1144          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1145          src -= 2;
  1.1146 @@ -12603,7 +12603,7 @@
  1.1147      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1148      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1149      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1150 -    while (dst != target) {
  1.1151 +    while (dst < target) {
  1.1152          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1153          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1154          src += 8;
  1.1155 @@ -12636,7 +12636,7 @@
  1.1156      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1157      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1158      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1159 -    while (dst != target) {
  1.1160 +    while (dst > target) {
  1.1161          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1162          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1163          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1164 @@ -12679,7 +12679,7 @@
  1.1165      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1166      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1167      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1168 -    while (dst != target) {
  1.1169 +    while (dst < target) {
  1.1170          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1171          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1172          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1173 @@ -12718,7 +12718,7 @@
  1.1174      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1175      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1176      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1177 -    while (dst != target) {
  1.1178 +    while (dst > target) {
  1.1179          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1180          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1181          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1182 @@ -12769,7 +12769,7 @@
  1.1183      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1184      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1185      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1186 -    while (dst != target) {
  1.1187 +    while (dst < target) {
  1.1188          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1189          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1190          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1191 @@ -12810,7 +12810,7 @@
  1.1192      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1193      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1194      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1195 -    while (dst != target) {
  1.1196 +    while (dst > target) {
  1.1197          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1198          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1199          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1200 @@ -12863,7 +12863,7 @@
  1.1201      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1202      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1203      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1204 -    while (dst != target) {
  1.1205 +    while (dst < target) {
  1.1206          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1207          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1208          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1209 @@ -12910,7 +12910,7 @@
  1.1210      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1211      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1212      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1213 -    while (dst != target) {
  1.1214 +    while (dst > target) {
  1.1215          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1216          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1217          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1218 @@ -12975,7 +12975,7 @@
  1.1219      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1220      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1221      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1222 -    while (dst != target) {
  1.1223 +    while (dst < target) {
  1.1224          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1225          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1226          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1227 @@ -13024,7 +13024,7 @@
  1.1228      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1229      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1230      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1231 -    while (dst != target) {
  1.1232 +    while (dst > target) {
  1.1233          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1234          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1235          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1236 @@ -13087,7 +13087,7 @@
  1.1237      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1238      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1239      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1240 -    while (dst != target) {
  1.1241 +    while (dst < target) {
  1.1242          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1243          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1244          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1245 @@ -13142,7 +13142,7 @@
  1.1246      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1247      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1248      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1249 -    while (dst != target) {
  1.1250 +    while (dst > target) {
  1.1251          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1252          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1253          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1254 @@ -13221,7 +13221,7 @@
  1.1255      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1256      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1257      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1258 -    while (dst != target) {
  1.1259 +    while (dst < target) {
  1.1260          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1261          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1262          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1263 @@ -13269,7 +13269,7 @@
  1.1264      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1265      const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1266      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1267 -    while (dst != target) {
  1.1268 +    while (dst > target) {
  1.1269          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1270          src--;
  1.1271          dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1272 @@ -13297,7 +13297,7 @@
  1.1273      const Sint32 *src = (Sint32 *) cvt->buf;
  1.1274      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1275      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1276 -    while (dst != target) {
  1.1277 +    while (dst < target) {
  1.1278          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1279          src += 2;
  1.1280          dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1281 @@ -13324,7 +13324,7 @@
  1.1282      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1283      const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1284      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1285 -    while (dst != target) {
  1.1286 +    while (dst > target) {
  1.1287          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1288          src--;
  1.1289          dst[3] = (Sint32) sample0;
  1.1290 @@ -13354,7 +13354,7 @@
  1.1291      const Sint32 *src = (Sint32 *) cvt->buf;
  1.1292      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1293      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1294 -    while (dst != target) {
  1.1295 +    while (dst < target) {
  1.1296          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1297          src += 4;
  1.1298          dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1299 @@ -13382,7 +13382,7 @@
  1.1300      const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1301      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1302      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1303 -    while (dst != target) {
  1.1304 +    while (dst > target) {
  1.1305          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1306          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1307          src -= 2;
  1.1308 @@ -13415,7 +13415,7 @@
  1.1309      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1310      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1311      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1312 -    while (dst != target) {
  1.1313 +    while (dst < target) {
  1.1314          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1315          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1316          src += 4;
  1.1317 @@ -13446,7 +13446,7 @@
  1.1318      const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1319      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1320      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1321 -    while (dst != target) {
  1.1322 +    while (dst > target) {
  1.1323          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1324          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1325          src -= 2;
  1.1326 @@ -13483,7 +13483,7 @@
  1.1327      const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
  1.1328      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1329      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1330 -    while (dst != target) {
  1.1331 +    while (dst < target) {
  1.1332          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1333          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1334          src += 8;
  1.1335 @@ -13516,7 +13516,7 @@
  1.1336      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1337      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1338      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1339 -    while (dst != target) {
  1.1340 +    while (dst > target) {
  1.1341          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1342          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1343          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1344 @@ -13559,7 +13559,7 @@
  1.1345      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1346      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1347      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1348 -    while (dst != target) {
  1.1349 +    while (dst < target) {
  1.1350          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1351          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1352          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1353 @@ -13598,7 +13598,7 @@
  1.1354      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1355      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1356      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1357 -    while (dst != target) {
  1.1358 +    while (dst > target) {
  1.1359          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1360          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1361          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1362 @@ -13649,7 +13649,7 @@
  1.1363      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1364      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1365      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1366 -    while (dst != target) {
  1.1367 +    while (dst < target) {
  1.1368          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1369          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1370          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1371 @@ -13690,7 +13690,7 @@
  1.1372      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1373      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1374      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1375 -    while (dst != target) {
  1.1376 +    while (dst > target) {
  1.1377          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1378          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1379          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1380 @@ -13743,7 +13743,7 @@
  1.1381      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1382      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1383      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1384 -    while (dst != target) {
  1.1385 +    while (dst < target) {
  1.1386          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1387          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1388          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1389 @@ -13790,7 +13790,7 @@
  1.1390      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1391      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1392      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1393 -    while (dst != target) {
  1.1394 +    while (dst > target) {
  1.1395          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1396          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1397          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1398 @@ -13855,7 +13855,7 @@
  1.1399      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1400      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1401      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1402 -    while (dst != target) {
  1.1403 +    while (dst < target) {
  1.1404          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1405          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1406          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1407 @@ -13904,7 +13904,7 @@
  1.1408      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1409      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1410      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1411 -    while (dst != target) {
  1.1412 +    while (dst > target) {
  1.1413          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.1414          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.1415          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1416 @@ -13967,7 +13967,7 @@
  1.1417      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1418      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.1419      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.1420 -    while (dst != target) {
  1.1421 +    while (dst < target) {
  1.1422          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1423          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1424          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1425 @@ -14022,7 +14022,7 @@
  1.1426      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1427      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1428      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1429 -    while (dst != target) {
  1.1430 +    while (dst > target) {
  1.1431          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.1432          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.1433          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1434 @@ -14101,7 +14101,7 @@
  1.1435      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1436      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.1437      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.1438 -    while (dst != target) {
  1.1439 +    while (dst < target) {
  1.1440          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1441          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1442          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1443 @@ -14149,7 +14149,7 @@
  1.1444      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1445      const float *target = ((const float *) cvt->buf) - 1;
  1.1446      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1447 -    while (dst != target) {
  1.1448 +    while (dst > target) {
  1.1449          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1450          src--;
  1.1451          dst[1] = (float) ((sample0 + last_sample0) * 0.5);
  1.1452 @@ -14177,7 +14177,7 @@
  1.1453      const float *src = (float *) cvt->buf;
  1.1454      const float *target = (const float *) (cvt->buf + dstsize);
  1.1455      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1456 -    while (dst != target) {
  1.1457 +    while (dst < target) {
  1.1458          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1459          src += 2;
  1.1460          dst[0] = (float) ((sample0 + last_sample0) * 0.5);
  1.1461 @@ -14204,7 +14204,7 @@
  1.1462      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1463      const float *target = ((const float *) cvt->buf) - 1;
  1.1464      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1465 -    while (dst != target) {
  1.1466 +    while (dst > target) {
  1.1467          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1468          src--;
  1.1469          dst[3] = (float) sample0;
  1.1470 @@ -14234,7 +14234,7 @@
  1.1471      const float *src = (float *) cvt->buf;
  1.1472      const float *target = (const float *) (cvt->buf + dstsize);
  1.1473      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1474 -    while (dst != target) {
  1.1475 +    while (dst < target) {
  1.1476          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1477          src += 4;
  1.1478          dst[0] = (float) ((sample0 + last_sample0) * 0.5);
  1.1479 @@ -14262,7 +14262,7 @@
  1.1480      const float *target = ((const float *) cvt->buf) - 2;
  1.1481      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1482      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1483 -    while (dst != target) {
  1.1484 +    while (dst > target) {
  1.1485          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1486          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1487          src -= 2;
  1.1488 @@ -14295,7 +14295,7 @@
  1.1489      const float *target = (const float *) (cvt->buf + dstsize);
  1.1490      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1491      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1492 -    while (dst != target) {
  1.1493 +    while (dst < target) {
  1.1494          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1495          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1496          src += 4;
  1.1497 @@ -14326,7 +14326,7 @@
  1.1498      const float *target = ((const float *) cvt->buf) - 2;
  1.1499      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1500      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1501 -    while (dst != target) {
  1.1502 +    while (dst > target) {
  1.1503          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1504          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1505          src -= 2;
  1.1506 @@ -14363,7 +14363,7 @@
  1.1507      const float *target = (const float *) (cvt->buf + dstsize);
  1.1508      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1509      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1510 -    while (dst != target) {
  1.1511 +    while (dst < target) {
  1.1512          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1513          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1514          src += 8;
  1.1515 @@ -14396,7 +14396,7 @@
  1.1516      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1517      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1518      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1519 -    while (dst != target) {
  1.1520 +    while (dst > target) {
  1.1521          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1522          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1523          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1524 @@ -14439,7 +14439,7 @@
  1.1525      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1526      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1527      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1528 -    while (dst != target) {
  1.1529 +    while (dst < target) {
  1.1530          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1531          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1532          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1533 @@ -14478,7 +14478,7 @@
  1.1534      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1535      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1536      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1537 -    while (dst != target) {
  1.1538 +    while (dst > target) {
  1.1539          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1540          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1541          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1542 @@ -14529,7 +14529,7 @@
  1.1543      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1544      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1545      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1546 -    while (dst != target) {
  1.1547 +    while (dst < target) {
  1.1548          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1549          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1550          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1551 @@ -14570,7 +14570,7 @@
  1.1552      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1553      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1554      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1555 -    while (dst != target) {
  1.1556 +    while (dst > target) {
  1.1557          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1558          const double sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.1559          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1560 @@ -14623,7 +14623,7 @@
  1.1561      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1562      double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.1563      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1564 -    while (dst != target) {
  1.1565 +    while (dst < target) {
  1.1566          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1567          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1568          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1569 @@ -14670,7 +14670,7 @@
  1.1570      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1571      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1572      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1573 -    while (dst != target) {
  1.1574 +    while (dst > target) {
  1.1575          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1576          const double sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.1577          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1578 @@ -14735,7 +14735,7 @@
  1.1579      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.1580      double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.1581      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1582 -    while (dst != target) {
  1.1583 +    while (dst < target) {
  1.1584          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1585          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1586          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1587 @@ -14784,7 +14784,7 @@
  1.1588      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1589      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1590      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1591 -    while (dst != target) {
  1.1592 +    while (dst > target) {
  1.1593          const double sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.1594          const double sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.1595          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1596 @@ -14847,7 +14847,7 @@
  1.1597      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1598      double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.1599      double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.1600 -    while (dst != target) {
  1.1601 +    while (dst < target) {
  1.1602          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1603          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1604          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1605 @@ -14902,7 +14902,7 @@
  1.1606      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1607      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1608      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1609 -    while (dst != target) {
  1.1610 +    while (dst > target) {
  1.1611          const double sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.1612          const double sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.1613          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1614 @@ -14981,7 +14981,7 @@
  1.1615      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.1616      double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.1617      double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.1618 -    while (dst != target) {
  1.1619 +    while (dst < target) {
  1.1620          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.1621          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.1622          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.1623 @@ -15029,7 +15029,7 @@
  1.1624      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1625      const float *target = ((const float *) cvt->buf) - 1;
  1.1626      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1627 -    while (dst != target) {
  1.1628 +    while (dst > target) {
  1.1629          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1630          src--;
  1.1631          dst[1] = (float) ((sample0 + last_sample0) * 0.5);
  1.1632 @@ -15057,7 +15057,7 @@
  1.1633      const float *src = (float *) cvt->buf;
  1.1634      const float *target = (const float *) (cvt->buf + dstsize);
  1.1635      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1636 -    while (dst != target) {
  1.1637 +    while (dst < target) {
  1.1638          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1639          src += 2;
  1.1640          dst[0] = (float) ((sample0 + last_sample0) * 0.5);
  1.1641 @@ -15084,7 +15084,7 @@
  1.1642      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1643      const float *target = ((const float *) cvt->buf) - 1;
  1.1644      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1645 -    while (dst != target) {
  1.1646 +    while (dst > target) {
  1.1647          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1648          src--;
  1.1649          dst[3] = (float) sample0;
  1.1650 @@ -15114,7 +15114,7 @@
  1.1651      const float *src = (float *) cvt->buf;
  1.1652      const float *target = (const float *) (cvt->buf + dstsize);
  1.1653      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1654 -    while (dst != target) {
  1.1655 +    while (dst < target) {
  1.1656          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1657          src += 4;
  1.1658          dst[0] = (float) ((sample0 + last_sample0) * 0.5);
  1.1659 @@ -15142,7 +15142,7 @@
  1.1660      const float *target = ((const float *) cvt->buf) - 2;
  1.1661      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1662      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1663 -    while (dst != target) {
  1.1664 +    while (dst > target) {
  1.1665          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1666          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1667          src -= 2;
  1.1668 @@ -15175,7 +15175,7 @@
  1.1669      const float *target = (const float *) (cvt->buf + dstsize);
  1.1670      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1671      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1672 -    while (dst != target) {
  1.1673 +    while (dst < target) {
  1.1674          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1675          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1676          src += 4;
  1.1677 @@ -15206,7 +15206,7 @@
  1.1678      const float *target = ((const float *) cvt->buf) - 2;
  1.1679      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1680      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1681 -    while (dst != target) {
  1.1682 +    while (dst > target) {
  1.1683          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1684          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1685          src -= 2;
  1.1686 @@ -15243,7 +15243,7 @@
  1.1687      const float *target = (const float *) (cvt->buf + dstsize);
  1.1688      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1689      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1690 -    while (dst != target) {
  1.1691 +    while (dst < target) {
  1.1692          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1693          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1694          src += 8;
  1.1695 @@ -15276,7 +15276,7 @@
  1.1696      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1697      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1698      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1699 -    while (dst != target) {
  1.1700 +    while (dst > target) {
  1.1701          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1702          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1703          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1704 @@ -15319,7 +15319,7 @@
  1.1705      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1706      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1707      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1708 -    while (dst != target) {
  1.1709 +    while (dst < target) {
  1.1710          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1711          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1712          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1713 @@ -15358,7 +15358,7 @@
  1.1714      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1715      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1716      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1717 -    while (dst != target) {
  1.1718 +    while (dst > target) {
  1.1719          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1720          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1721          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1722 @@ -15409,7 +15409,7 @@
  1.1723      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1724      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1725      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1726 -    while (dst != target) {
  1.1727 +    while (dst < target) {
  1.1728          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1729          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1730          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1731 @@ -15450,7 +15450,7 @@
  1.1732      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1733      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1734      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1735 -    while (dst != target) {
  1.1736 +    while (dst > target) {
  1.1737          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1738          const double sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.1739          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1740 @@ -15503,7 +15503,7 @@
  1.1741      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1742      double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.1743      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1744 -    while (dst != target) {
  1.1745 +    while (dst < target) {
  1.1746          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1747          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1748          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1749 @@ -15550,7 +15550,7 @@
  1.1750      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1751      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1752      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1753 -    while (dst != target) {
  1.1754 +    while (dst > target) {
  1.1755          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1756          const double sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.1757          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1758 @@ -15615,7 +15615,7 @@
  1.1759      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.1760      double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.1761      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1762 -    while (dst != target) {
  1.1763 +    while (dst < target) {
  1.1764          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1765          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1766          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1767 @@ -15664,7 +15664,7 @@
  1.1768      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1769      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1770      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1771 -    while (dst != target) {
  1.1772 +    while (dst > target) {
  1.1773          const double sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.1774          const double sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.1775          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1776 @@ -15727,7 +15727,7 @@
  1.1777      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1778      double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.1779      double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.1780 -    while (dst != target) {
  1.1781 +    while (dst < target) {
  1.1782          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1783          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1784          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1785 @@ -15782,7 +15782,7 @@
  1.1786      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.1787      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1788      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1789 -    while (dst != target) {
  1.1790 +    while (dst > target) {
  1.1791          const double sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.1792          const double sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.1793          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1794 @@ -15861,7 +15861,7 @@
  1.1795      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.1796      double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.1797      double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.1798 -    while (dst != target) {
  1.1799 +    while (dst < target) {
  1.1800          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.1801          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.1802          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
     2.1 --- a/src/audio/sdlgenaudiocvt.pl	Thu Dec 24 21:00:42 2009 +0000
     2.2 +++ b/src/audio/sdlgenaudiocvt.pl	Mon Dec 28 08:28:24 2009 +0000
     2.3 @@ -537,15 +537,19 @@
     2.4      const int dstsize = cvt->len_cvt $lencvtop $multiple;
     2.5  EOF
     2.6  
     2.7 +    my $endcomparison = '!=';
     2.8 +
     2.9      # Upsampling (growing the buffer) needs to work backwards, since we
    2.10      #  overwrite the buffer as we go.
    2.11      if ($upsample) {
    2.12 +        $endcomparison = '>';  # dst > target
    2.13          print <<EOF;
    2.14      $fctype *dst = (($fctype *) (cvt->buf + dstsize)) - $channels;
    2.15      const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels;
    2.16      const $fctype *target = ((const $fctype *) cvt->buf) - $channels;
    2.17  EOF
    2.18      } else {
    2.19 +        $endcomparison = '<';  # dst < target
    2.20          print <<EOF;
    2.21      $fctype *dst = ($fctype *) cvt->buf;
    2.22      const $fctype *src = ($fctype *) cvt->buf;
    2.23 @@ -562,7 +566,7 @@
    2.24      }
    2.25  
    2.26      print <<EOF;
    2.27 -    while (dst != target) {
    2.28 +    while (dst $endcomparison target) {
    2.29  EOF
    2.30  
    2.31      for (my $i = 0; $i < $channels; $i++) {