src/audio/SDL_audiotypecvt.c
changeset 6194 ba275696ab7a
parent 6138 4c64952a58fb
child 6196 f1a312da2669
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Sun Jan 08 14:45:57 2012 -0500
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Sun Jan 08 17:10:57 2012 -0500
     1.3 @@ -2304,10 +2304,10 @@
     1.4      register int eps = 0;
     1.5      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1;
     1.6      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
     1.7 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 1;
     1.8 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
     1.9      Uint8 sample0 = src[0];
    1.10      Uint8 last_sample0 = sample0;
    1.11 -    while (dst > target) {
    1.12 +    while (dst >= target) {
    1.13          dst[0] = sample0;
    1.14          dst--;
    1.15          eps += srcsize;
    1.16 @@ -2368,12 +2368,12 @@
    1.17      register int eps = 0;
    1.18      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2;
    1.19      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
    1.20 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 2;
    1.21 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
    1.22      Uint8 sample1 = src[1];
    1.23      Uint8 sample0 = src[0];
    1.24      Uint8 last_sample1 = sample1;
    1.25      Uint8 last_sample0 = sample0;
    1.26 -    while (dst > target) {
    1.27 +    while (dst >= target) {
    1.28          dst[1] = sample1;
    1.29          dst[0] = sample0;
    1.30          dst -= 2;
    1.31 @@ -2442,7 +2442,7 @@
    1.32      register int eps = 0;
    1.33      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4;
    1.34      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
    1.35 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 4;
    1.36 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
    1.37      Uint8 sample3 = src[3];
    1.38      Uint8 sample2 = src[2];
    1.39      Uint8 sample1 = src[1];
    1.40 @@ -2451,7 +2451,7 @@
    1.41      Uint8 last_sample2 = sample2;
    1.42      Uint8 last_sample1 = sample1;
    1.43      Uint8 last_sample0 = sample0;
    1.44 -    while (dst > target) {
    1.45 +    while (dst >= target) {
    1.46          dst[3] = sample3;
    1.47          dst[2] = sample2;
    1.48          dst[1] = sample1;
    1.49 @@ -2536,7 +2536,7 @@
    1.50      register int eps = 0;
    1.51      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6;
    1.52      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
    1.53 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 6;
    1.54 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
    1.55      Uint8 sample5 = src[5];
    1.56      Uint8 sample4 = src[4];
    1.57      Uint8 sample3 = src[3];
    1.58 @@ -2549,7 +2549,7 @@
    1.59      Uint8 last_sample2 = sample2;
    1.60      Uint8 last_sample1 = sample1;
    1.61      Uint8 last_sample0 = sample0;
    1.62 -    while (dst > target) {
    1.63 +    while (dst >= target) {
    1.64          dst[5] = sample5;
    1.65          dst[4] = sample4;
    1.66          dst[3] = sample3;
    1.67 @@ -2650,7 +2650,7 @@
    1.68      register int eps = 0;
    1.69      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8;
    1.70      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
    1.71 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 8;
    1.72 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
    1.73      Uint8 sample7 = src[7];
    1.74      Uint8 sample6 = src[6];
    1.75      Uint8 sample5 = src[5];
    1.76 @@ -2667,7 +2667,7 @@
    1.77      Uint8 last_sample2 = sample2;
    1.78      Uint8 last_sample1 = sample1;
    1.79      Uint8 last_sample0 = sample0;
    1.80 -    while (dst > target) {
    1.81 +    while (dst >= target) {
    1.82          dst[7] = sample7;
    1.83          dst[6] = sample6;
    1.84          dst[5] = sample5;
    1.85 @@ -2784,10 +2784,10 @@
    1.86      register int eps = 0;
    1.87      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1;
    1.88      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
    1.89 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 1;
    1.90 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
    1.91      Sint8 sample0 = ((Sint8) src[0]);
    1.92      Sint8 last_sample0 = sample0;
    1.93 -    while (dst > target) {
    1.94 +    while (dst >= target) {
    1.95          dst[0] = ((Sint8) sample0);
    1.96          dst--;
    1.97          eps += srcsize;
    1.98 @@ -2848,12 +2848,12 @@
    1.99      register int eps = 0;
   1.100      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2;
   1.101      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.102 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 2;
   1.103 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.104      Sint8 sample1 = ((Sint8) src[1]);
   1.105      Sint8 sample0 = ((Sint8) src[0]);
   1.106      Sint8 last_sample1 = sample1;
   1.107      Sint8 last_sample0 = sample0;
   1.108 -    while (dst > target) {
   1.109 +    while (dst >= target) {
   1.110          dst[1] = ((Sint8) sample1);
   1.111          dst[0] = ((Sint8) sample0);
   1.112          dst -= 2;
   1.113 @@ -2922,7 +2922,7 @@
   1.114      register int eps = 0;
   1.115      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4;
   1.116      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.117 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 4;
   1.118 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.119      Sint8 sample3 = ((Sint8) src[3]);
   1.120      Sint8 sample2 = ((Sint8) src[2]);
   1.121      Sint8 sample1 = ((Sint8) src[1]);
   1.122 @@ -2931,7 +2931,7 @@
   1.123      Sint8 last_sample2 = sample2;
   1.124      Sint8 last_sample1 = sample1;
   1.125      Sint8 last_sample0 = sample0;
   1.126 -    while (dst > target) {
   1.127 +    while (dst >= target) {
   1.128          dst[3] = ((Sint8) sample3);
   1.129          dst[2] = ((Sint8) sample2);
   1.130          dst[1] = ((Sint8) sample1);
   1.131 @@ -3016,7 +3016,7 @@
   1.132      register int eps = 0;
   1.133      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6;
   1.134      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.135 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 6;
   1.136 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.137      Sint8 sample5 = ((Sint8) src[5]);
   1.138      Sint8 sample4 = ((Sint8) src[4]);
   1.139      Sint8 sample3 = ((Sint8) src[3]);
   1.140 @@ -3029,7 +3029,7 @@
   1.141      Sint8 last_sample2 = sample2;
   1.142      Sint8 last_sample1 = sample1;
   1.143      Sint8 last_sample0 = sample0;
   1.144 -    while (dst > target) {
   1.145 +    while (dst >= target) {
   1.146          dst[5] = ((Sint8) sample5);
   1.147          dst[4] = ((Sint8) sample4);
   1.148          dst[3] = ((Sint8) sample3);
   1.149 @@ -3130,7 +3130,7 @@
   1.150      register int eps = 0;
   1.151      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8;
   1.152      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.153 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 8;
   1.154 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.155      Sint8 sample7 = ((Sint8) src[7]);
   1.156      Sint8 sample6 = ((Sint8) src[6]);
   1.157      Sint8 sample5 = ((Sint8) src[5]);
   1.158 @@ -3147,7 +3147,7 @@
   1.159      Sint8 last_sample2 = sample2;
   1.160      Sint8 last_sample1 = sample1;
   1.161      Sint8 last_sample0 = sample0;
   1.162 -    while (dst > target) {
   1.163 +    while (dst >= target) {
   1.164          dst[7] = ((Sint8) sample7);
   1.165          dst[6] = ((Sint8) sample6);
   1.166          dst[5] = ((Sint8) sample5);
   1.167 @@ -3264,10 +3264,10 @@
   1.168      register int eps = 0;
   1.169      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
   1.170      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.171 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.172 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.173      Uint16 sample0 = SDL_SwapLE16(src[0]);
   1.174      Uint16 last_sample0 = sample0;
   1.175 -    while (dst > target) {
   1.176 +    while (dst >= target) {
   1.177          dst[0] = SDL_SwapLE16(sample0);
   1.178          dst--;
   1.179          eps += srcsize;
   1.180 @@ -3328,12 +3328,12 @@
   1.181      register int eps = 0;
   1.182      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
   1.183      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.184 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.185 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.186      Uint16 sample1 = SDL_SwapLE16(src[1]);
   1.187      Uint16 sample0 = SDL_SwapLE16(src[0]);
   1.188      Uint16 last_sample1 = sample1;
   1.189      Uint16 last_sample0 = sample0;
   1.190 -    while (dst > target) {
   1.191 +    while (dst >= target) {
   1.192          dst[1] = SDL_SwapLE16(sample1);
   1.193          dst[0] = SDL_SwapLE16(sample0);
   1.194          dst -= 2;
   1.195 @@ -3402,7 +3402,7 @@
   1.196      register int eps = 0;
   1.197      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
   1.198      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.199 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
   1.200 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.201      Uint16 sample3 = SDL_SwapLE16(src[3]);
   1.202      Uint16 sample2 = SDL_SwapLE16(src[2]);
   1.203      Uint16 sample1 = SDL_SwapLE16(src[1]);
   1.204 @@ -3411,7 +3411,7 @@
   1.205      Uint16 last_sample2 = sample2;
   1.206      Uint16 last_sample1 = sample1;
   1.207      Uint16 last_sample0 = sample0;
   1.208 -    while (dst > target) {
   1.209 +    while (dst >= target) {
   1.210          dst[3] = SDL_SwapLE16(sample3);
   1.211          dst[2] = SDL_SwapLE16(sample2);
   1.212          dst[1] = SDL_SwapLE16(sample1);
   1.213 @@ -3496,7 +3496,7 @@
   1.214      register int eps = 0;
   1.215      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
   1.216      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.217 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
   1.218 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.219      Uint16 sample5 = SDL_SwapLE16(src[5]);
   1.220      Uint16 sample4 = SDL_SwapLE16(src[4]);
   1.221      Uint16 sample3 = SDL_SwapLE16(src[3]);
   1.222 @@ -3509,7 +3509,7 @@
   1.223      Uint16 last_sample2 = sample2;
   1.224      Uint16 last_sample1 = sample1;
   1.225      Uint16 last_sample0 = sample0;
   1.226 -    while (dst > target) {
   1.227 +    while (dst >= target) {
   1.228          dst[5] = SDL_SwapLE16(sample5);
   1.229          dst[4] = SDL_SwapLE16(sample4);
   1.230          dst[3] = SDL_SwapLE16(sample3);
   1.231 @@ -3610,7 +3610,7 @@
   1.232      register int eps = 0;
   1.233      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
   1.234      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.235 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
   1.236 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.237      Uint16 sample7 = SDL_SwapLE16(src[7]);
   1.238      Uint16 sample6 = SDL_SwapLE16(src[6]);
   1.239      Uint16 sample5 = SDL_SwapLE16(src[5]);
   1.240 @@ -3627,7 +3627,7 @@
   1.241      Uint16 last_sample2 = sample2;
   1.242      Uint16 last_sample1 = sample1;
   1.243      Uint16 last_sample0 = sample0;
   1.244 -    while (dst > target) {
   1.245 +    while (dst >= target) {
   1.246          dst[7] = SDL_SwapLE16(sample7);
   1.247          dst[6] = SDL_SwapLE16(sample6);
   1.248          dst[5] = SDL_SwapLE16(sample5);
   1.249 @@ -3744,10 +3744,10 @@
   1.250      register int eps = 0;
   1.251      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
   1.252      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.253 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.254 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.255      Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
   1.256      Sint16 last_sample0 = sample0;
   1.257 -    while (dst > target) {
   1.258 +    while (dst >= target) {
   1.259          dst[0] = ((Sint16) SDL_SwapLE16(sample0));
   1.260          dst--;
   1.261          eps += srcsize;
   1.262 @@ -3808,12 +3808,12 @@
   1.263      register int eps = 0;
   1.264      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
   1.265      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.266 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.267 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.268      Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
   1.269      Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
   1.270      Sint16 last_sample1 = sample1;
   1.271      Sint16 last_sample0 = sample0;
   1.272 -    while (dst > target) {
   1.273 +    while (dst >= target) {
   1.274          dst[1] = ((Sint16) SDL_SwapLE16(sample1));
   1.275          dst[0] = ((Sint16) SDL_SwapLE16(sample0));
   1.276          dst -= 2;
   1.277 @@ -3882,7 +3882,7 @@
   1.278      register int eps = 0;
   1.279      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
   1.280      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.281 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
   1.282 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.283      Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
   1.284      Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
   1.285      Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
   1.286 @@ -3891,7 +3891,7 @@
   1.287      Sint16 last_sample2 = sample2;
   1.288      Sint16 last_sample1 = sample1;
   1.289      Sint16 last_sample0 = sample0;
   1.290 -    while (dst > target) {
   1.291 +    while (dst >= target) {
   1.292          dst[3] = ((Sint16) SDL_SwapLE16(sample3));
   1.293          dst[2] = ((Sint16) SDL_SwapLE16(sample2));
   1.294          dst[1] = ((Sint16) SDL_SwapLE16(sample1));
   1.295 @@ -3976,7 +3976,7 @@
   1.296      register int eps = 0;
   1.297      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
   1.298      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.299 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
   1.300 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.301      Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
   1.302      Sint16 sample4 = ((Sint16) SDL_SwapLE16(src[4]));
   1.303      Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
   1.304 @@ -3989,7 +3989,7 @@
   1.305      Sint16 last_sample2 = sample2;
   1.306      Sint16 last_sample1 = sample1;
   1.307      Sint16 last_sample0 = sample0;
   1.308 -    while (dst > target) {
   1.309 +    while (dst >= target) {
   1.310          dst[5] = ((Sint16) SDL_SwapLE16(sample5));
   1.311          dst[4] = ((Sint16) SDL_SwapLE16(sample4));
   1.312          dst[3] = ((Sint16) SDL_SwapLE16(sample3));
   1.313 @@ -4090,7 +4090,7 @@
   1.314      register int eps = 0;
   1.315      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
   1.316      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.317 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
   1.318 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.319      Sint16 sample7 = ((Sint16) SDL_SwapLE16(src[7]));
   1.320      Sint16 sample6 = ((Sint16) SDL_SwapLE16(src[6]));
   1.321      Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
   1.322 @@ -4107,7 +4107,7 @@
   1.323      Sint16 last_sample2 = sample2;
   1.324      Sint16 last_sample1 = sample1;
   1.325      Sint16 last_sample0 = sample0;
   1.326 -    while (dst > target) {
   1.327 +    while (dst >= target) {
   1.328          dst[7] = ((Sint16) SDL_SwapLE16(sample7));
   1.329          dst[6] = ((Sint16) SDL_SwapLE16(sample6));
   1.330          dst[5] = ((Sint16) SDL_SwapLE16(sample5));
   1.331 @@ -4224,10 +4224,10 @@
   1.332      register int eps = 0;
   1.333      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
   1.334      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.335 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
   1.336 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.337      Uint16 sample0 = SDL_SwapBE16(src[0]);
   1.338      Uint16 last_sample0 = sample0;
   1.339 -    while (dst > target) {
   1.340 +    while (dst >= target) {
   1.341          dst[0] = SDL_SwapBE16(sample0);
   1.342          dst--;
   1.343          eps += srcsize;
   1.344 @@ -4288,12 +4288,12 @@
   1.345      register int eps = 0;
   1.346      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
   1.347      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.348 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
   1.349 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.350      Uint16 sample1 = SDL_SwapBE16(src[1]);
   1.351      Uint16 sample0 = SDL_SwapBE16(src[0]);
   1.352      Uint16 last_sample1 = sample1;
   1.353      Uint16 last_sample0 = sample0;
   1.354 -    while (dst > target) {
   1.355 +    while (dst >= target) {
   1.356          dst[1] = SDL_SwapBE16(sample1);
   1.357          dst[0] = SDL_SwapBE16(sample0);
   1.358          dst -= 2;
   1.359 @@ -4362,7 +4362,7 @@
   1.360      register int eps = 0;
   1.361      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
   1.362      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.363 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
   1.364 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.365      Uint16 sample3 = SDL_SwapBE16(src[3]);
   1.366      Uint16 sample2 = SDL_SwapBE16(src[2]);
   1.367      Uint16 sample1 = SDL_SwapBE16(src[1]);
   1.368 @@ -4371,7 +4371,7 @@
   1.369      Uint16 last_sample2 = sample2;
   1.370      Uint16 last_sample1 = sample1;
   1.371      Uint16 last_sample0 = sample0;
   1.372 -    while (dst > target) {
   1.373 +    while (dst >= target) {
   1.374          dst[3] = SDL_SwapBE16(sample3);
   1.375          dst[2] = SDL_SwapBE16(sample2);
   1.376          dst[1] = SDL_SwapBE16(sample1);
   1.377 @@ -4456,7 +4456,7 @@
   1.378      register int eps = 0;
   1.379      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
   1.380      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.381 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
   1.382 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.383      Uint16 sample5 = SDL_SwapBE16(src[5]);
   1.384      Uint16 sample4 = SDL_SwapBE16(src[4]);
   1.385      Uint16 sample3 = SDL_SwapBE16(src[3]);
   1.386 @@ -4469,7 +4469,7 @@
   1.387      Uint16 last_sample2 = sample2;
   1.388      Uint16 last_sample1 = sample1;
   1.389      Uint16 last_sample0 = sample0;
   1.390 -    while (dst > target) {
   1.391 +    while (dst >= target) {
   1.392          dst[5] = SDL_SwapBE16(sample5);
   1.393          dst[4] = SDL_SwapBE16(sample4);
   1.394          dst[3] = SDL_SwapBE16(sample3);
   1.395 @@ -4570,7 +4570,7 @@
   1.396      register int eps = 0;
   1.397      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
   1.398      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.399 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
   1.400 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
   1.401      Uint16 sample7 = SDL_SwapBE16(src[7]);
   1.402      Uint16 sample6 = SDL_SwapBE16(src[6]);
   1.403      Uint16 sample5 = SDL_SwapBE16(src[5]);
   1.404 @@ -4587,7 +4587,7 @@
   1.405      Uint16 last_sample2 = sample2;
   1.406      Uint16 last_sample1 = sample1;
   1.407      Uint16 last_sample0 = sample0;
   1.408 -    while (dst > target) {
   1.409 +    while (dst >= target) {
   1.410          dst[7] = SDL_SwapBE16(sample7);
   1.411          dst[6] = SDL_SwapBE16(sample6);
   1.412          dst[5] = SDL_SwapBE16(sample5);
   1.413 @@ -4704,10 +4704,10 @@
   1.414      register int eps = 0;
   1.415      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
   1.416      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.417 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
   1.418 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.419      Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
   1.420      Sint16 last_sample0 = sample0;
   1.421 -    while (dst > target) {
   1.422 +    while (dst >= target) {
   1.423          dst[0] = ((Sint16) SDL_SwapBE16(sample0));
   1.424          dst--;
   1.425          eps += srcsize;
   1.426 @@ -4768,12 +4768,12 @@
   1.427      register int eps = 0;
   1.428      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
   1.429      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.430 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
   1.431 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.432      Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
   1.433      Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
   1.434      Sint16 last_sample1 = sample1;
   1.435      Sint16 last_sample0 = sample0;
   1.436 -    while (dst > target) {
   1.437 +    while (dst >= target) {
   1.438          dst[1] = ((Sint16) SDL_SwapBE16(sample1));
   1.439          dst[0] = ((Sint16) SDL_SwapBE16(sample0));
   1.440          dst -= 2;
   1.441 @@ -4842,7 +4842,7 @@
   1.442      register int eps = 0;
   1.443      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
   1.444      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.445 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
   1.446 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.447      Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
   1.448      Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
   1.449      Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
   1.450 @@ -4851,7 +4851,7 @@
   1.451      Sint16 last_sample2 = sample2;
   1.452      Sint16 last_sample1 = sample1;
   1.453      Sint16 last_sample0 = sample0;
   1.454 -    while (dst > target) {
   1.455 +    while (dst >= target) {
   1.456          dst[3] = ((Sint16) SDL_SwapBE16(sample3));
   1.457          dst[2] = ((Sint16) SDL_SwapBE16(sample2));
   1.458          dst[1] = ((Sint16) SDL_SwapBE16(sample1));
   1.459 @@ -4936,7 +4936,7 @@
   1.460      register int eps = 0;
   1.461      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
   1.462      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.463 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
   1.464 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.465      Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
   1.466      Sint16 sample4 = ((Sint16) SDL_SwapBE16(src[4]));
   1.467      Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
   1.468 @@ -4949,7 +4949,7 @@
   1.469      Sint16 last_sample2 = sample2;
   1.470      Sint16 last_sample1 = sample1;
   1.471      Sint16 last_sample0 = sample0;
   1.472 -    while (dst > target) {
   1.473 +    while (dst >= target) {
   1.474          dst[5] = ((Sint16) SDL_SwapBE16(sample5));
   1.475          dst[4] = ((Sint16) SDL_SwapBE16(sample4));
   1.476          dst[3] = ((Sint16) SDL_SwapBE16(sample3));
   1.477 @@ -5050,7 +5050,7 @@
   1.478      register int eps = 0;
   1.479      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
   1.480      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.481 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
   1.482 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
   1.483      Sint16 sample7 = ((Sint16) SDL_SwapBE16(src[7]));
   1.484      Sint16 sample6 = ((Sint16) SDL_SwapBE16(src[6]));
   1.485      Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
   1.486 @@ -5067,7 +5067,7 @@
   1.487      Sint16 last_sample2 = sample2;
   1.488      Sint16 last_sample1 = sample1;
   1.489      Sint16 last_sample0 = sample0;
   1.490 -    while (dst > target) {
   1.491 +    while (dst >= target) {
   1.492          dst[7] = ((Sint16) SDL_SwapBE16(sample7));
   1.493          dst[6] = ((Sint16) SDL_SwapBE16(sample6));
   1.494          dst[5] = ((Sint16) SDL_SwapBE16(sample5));
   1.495 @@ -5184,10 +5184,10 @@
   1.496      register int eps = 0;
   1.497      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
   1.498      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.499 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
   1.500 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.501      Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
   1.502      Sint32 last_sample0 = sample0;
   1.503 -    while (dst > target) {
   1.504 +    while (dst >= target) {
   1.505          dst[0] = ((Sint32) SDL_SwapLE32(sample0));
   1.506          dst--;
   1.507          eps += srcsize;
   1.508 @@ -5248,12 +5248,12 @@
   1.509      register int eps = 0;
   1.510      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
   1.511      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.512 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
   1.513 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.514      Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
   1.515      Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
   1.516      Sint32 last_sample1 = sample1;
   1.517      Sint32 last_sample0 = sample0;
   1.518 -    while (dst > target) {
   1.519 +    while (dst >= target) {
   1.520          dst[1] = ((Sint32) SDL_SwapLE32(sample1));
   1.521          dst[0] = ((Sint32) SDL_SwapLE32(sample0));
   1.522          dst -= 2;
   1.523 @@ -5322,7 +5322,7 @@
   1.524      register int eps = 0;
   1.525      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
   1.526      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.527 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
   1.528 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.529      Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
   1.530      Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
   1.531      Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
   1.532 @@ -5331,7 +5331,7 @@
   1.533      Sint32 last_sample2 = sample2;
   1.534      Sint32 last_sample1 = sample1;
   1.535      Sint32 last_sample0 = sample0;
   1.536 -    while (dst > target) {
   1.537 +    while (dst >= target) {
   1.538          dst[3] = ((Sint32) SDL_SwapLE32(sample3));
   1.539          dst[2] = ((Sint32) SDL_SwapLE32(sample2));
   1.540          dst[1] = ((Sint32) SDL_SwapLE32(sample1));
   1.541 @@ -5416,7 +5416,7 @@
   1.542      register int eps = 0;
   1.543      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
   1.544      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.545 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
   1.546 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.547      Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
   1.548      Sint32 sample4 = ((Sint32) SDL_SwapLE32(src[4]));
   1.549      Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
   1.550 @@ -5429,7 +5429,7 @@
   1.551      Sint32 last_sample2 = sample2;
   1.552      Sint32 last_sample1 = sample1;
   1.553      Sint32 last_sample0 = sample0;
   1.554 -    while (dst > target) {
   1.555 +    while (dst >= target) {
   1.556          dst[5] = ((Sint32) SDL_SwapLE32(sample5));
   1.557          dst[4] = ((Sint32) SDL_SwapLE32(sample4));
   1.558          dst[3] = ((Sint32) SDL_SwapLE32(sample3));
   1.559 @@ -5530,7 +5530,7 @@
   1.560      register int eps = 0;
   1.561      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
   1.562      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.563 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
   1.564 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.565      Sint32 sample7 = ((Sint32) SDL_SwapLE32(src[7]));
   1.566      Sint32 sample6 = ((Sint32) SDL_SwapLE32(src[6]));
   1.567      Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
   1.568 @@ -5547,7 +5547,7 @@
   1.569      Sint32 last_sample2 = sample2;
   1.570      Sint32 last_sample1 = sample1;
   1.571      Sint32 last_sample0 = sample0;
   1.572 -    while (dst > target) {
   1.573 +    while (dst >= target) {
   1.574          dst[7] = ((Sint32) SDL_SwapLE32(sample7));
   1.575          dst[6] = ((Sint32) SDL_SwapLE32(sample6));
   1.576          dst[5] = ((Sint32) SDL_SwapLE32(sample5));
   1.577 @@ -5664,10 +5664,10 @@
   1.578      register int eps = 0;
   1.579      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
   1.580      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.581 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
   1.582 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.583      Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
   1.584      Sint32 last_sample0 = sample0;
   1.585 -    while (dst > target) {
   1.586 +    while (dst >= target) {
   1.587          dst[0] = ((Sint32) SDL_SwapBE32(sample0));
   1.588          dst--;
   1.589          eps += srcsize;
   1.590 @@ -5728,12 +5728,12 @@
   1.591      register int eps = 0;
   1.592      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
   1.593      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.594 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
   1.595 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.596      Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
   1.597      Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
   1.598      Sint32 last_sample1 = sample1;
   1.599      Sint32 last_sample0 = sample0;
   1.600 -    while (dst > target) {
   1.601 +    while (dst >= target) {
   1.602          dst[1] = ((Sint32) SDL_SwapBE32(sample1));
   1.603          dst[0] = ((Sint32) SDL_SwapBE32(sample0));
   1.604          dst -= 2;
   1.605 @@ -5802,7 +5802,7 @@
   1.606      register int eps = 0;
   1.607      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
   1.608      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.609 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
   1.610 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.611      Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
   1.612      Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
   1.613      Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
   1.614 @@ -5811,7 +5811,7 @@
   1.615      Sint32 last_sample2 = sample2;
   1.616      Sint32 last_sample1 = sample1;
   1.617      Sint32 last_sample0 = sample0;
   1.618 -    while (dst > target) {
   1.619 +    while (dst >= target) {
   1.620          dst[3] = ((Sint32) SDL_SwapBE32(sample3));
   1.621          dst[2] = ((Sint32) SDL_SwapBE32(sample2));
   1.622          dst[1] = ((Sint32) SDL_SwapBE32(sample1));
   1.623 @@ -5896,7 +5896,7 @@
   1.624      register int eps = 0;
   1.625      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
   1.626      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.627 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
   1.628 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.629      Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
   1.630      Sint32 sample4 = ((Sint32) SDL_SwapBE32(src[4]));
   1.631      Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
   1.632 @@ -5909,7 +5909,7 @@
   1.633      Sint32 last_sample2 = sample2;
   1.634      Sint32 last_sample1 = sample1;
   1.635      Sint32 last_sample0 = sample0;
   1.636 -    while (dst > target) {
   1.637 +    while (dst >= target) {
   1.638          dst[5] = ((Sint32) SDL_SwapBE32(sample5));
   1.639          dst[4] = ((Sint32) SDL_SwapBE32(sample4));
   1.640          dst[3] = ((Sint32) SDL_SwapBE32(sample3));
   1.641 @@ -6010,7 +6010,7 @@
   1.642      register int eps = 0;
   1.643      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
   1.644      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.645 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
   1.646 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
   1.647      Sint32 sample7 = ((Sint32) SDL_SwapBE32(src[7]));
   1.648      Sint32 sample6 = ((Sint32) SDL_SwapBE32(src[6]));
   1.649      Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
   1.650 @@ -6027,7 +6027,7 @@
   1.651      Sint32 last_sample2 = sample2;
   1.652      Sint32 last_sample1 = sample1;
   1.653      Sint32 last_sample0 = sample0;
   1.654 -    while (dst > target) {
   1.655 +    while (dst >= target) {
   1.656          dst[7] = ((Sint32) SDL_SwapBE32(sample7));
   1.657          dst[6] = ((Sint32) SDL_SwapBE32(sample6));
   1.658          dst[5] = ((Sint32) SDL_SwapBE32(sample5));
   1.659 @@ -6144,10 +6144,10 @@
   1.660      register int eps = 0;
   1.661      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
   1.662      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
   1.663 -    const float *target = ((const float *) cvt->buf) - 1;
   1.664 +    const float *target = ((const float *) cvt->buf);
   1.665      float sample0 = SDL_SwapFloatLE(src[0]);
   1.666      float last_sample0 = sample0;
   1.667 -    while (dst > target) {
   1.668 +    while (dst >= target) {
   1.669          dst[0] = SDL_SwapFloatLE(sample0);
   1.670          dst--;
   1.671          eps += srcsize;
   1.672 @@ -6208,12 +6208,12 @@
   1.673      register int eps = 0;
   1.674      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
   1.675      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
   1.676 -    const float *target = ((const float *) cvt->buf) - 2;
   1.677 +    const float *target = ((const float *) cvt->buf);
   1.678      float sample1 = SDL_SwapFloatLE(src[1]);
   1.679      float sample0 = SDL_SwapFloatLE(src[0]);
   1.680      float last_sample1 = sample1;
   1.681      float last_sample0 = sample0;
   1.682 -    while (dst > target) {
   1.683 +    while (dst >= target) {
   1.684          dst[1] = SDL_SwapFloatLE(sample1);
   1.685          dst[0] = SDL_SwapFloatLE(sample0);
   1.686          dst -= 2;
   1.687 @@ -6282,7 +6282,7 @@
   1.688      register int eps = 0;
   1.689      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
   1.690      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
   1.691 -    const float *target = ((const float *) cvt->buf) - 4;
   1.692 +    const float *target = ((const float *) cvt->buf);
   1.693      float sample3 = SDL_SwapFloatLE(src[3]);
   1.694      float sample2 = SDL_SwapFloatLE(src[2]);
   1.695      float sample1 = SDL_SwapFloatLE(src[1]);
   1.696 @@ -6291,7 +6291,7 @@
   1.697      float last_sample2 = sample2;
   1.698      float last_sample1 = sample1;
   1.699      float last_sample0 = sample0;
   1.700 -    while (dst > target) {
   1.701 +    while (dst >= target) {
   1.702          dst[3] = SDL_SwapFloatLE(sample3);
   1.703          dst[2] = SDL_SwapFloatLE(sample2);
   1.704          dst[1] = SDL_SwapFloatLE(sample1);
   1.705 @@ -6376,7 +6376,7 @@
   1.706      register int eps = 0;
   1.707      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
   1.708      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
   1.709 -    const float *target = ((const float *) cvt->buf) - 6;
   1.710 +    const float *target = ((const float *) cvt->buf);
   1.711      float sample5 = SDL_SwapFloatLE(src[5]);
   1.712      float sample4 = SDL_SwapFloatLE(src[4]);
   1.713      float sample3 = SDL_SwapFloatLE(src[3]);
   1.714 @@ -6389,7 +6389,7 @@
   1.715      float last_sample2 = sample2;
   1.716      float last_sample1 = sample1;
   1.717      float last_sample0 = sample0;
   1.718 -    while (dst > target) {
   1.719 +    while (dst >= target) {
   1.720          dst[5] = SDL_SwapFloatLE(sample5);
   1.721          dst[4] = SDL_SwapFloatLE(sample4);
   1.722          dst[3] = SDL_SwapFloatLE(sample3);
   1.723 @@ -6490,7 +6490,7 @@
   1.724      register int eps = 0;
   1.725      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
   1.726      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
   1.727 -    const float *target = ((const float *) cvt->buf) - 8;
   1.728 +    const float *target = ((const float *) cvt->buf);
   1.729      float sample7 = SDL_SwapFloatLE(src[7]);
   1.730      float sample6 = SDL_SwapFloatLE(src[6]);
   1.731      float sample5 = SDL_SwapFloatLE(src[5]);
   1.732 @@ -6507,7 +6507,7 @@
   1.733      float last_sample2 = sample2;
   1.734      float last_sample1 = sample1;
   1.735      float last_sample0 = sample0;
   1.736 -    while (dst > target) {
   1.737 +    while (dst >= target) {
   1.738          dst[7] = SDL_SwapFloatLE(sample7);
   1.739          dst[6] = SDL_SwapFloatLE(sample6);
   1.740          dst[5] = SDL_SwapFloatLE(sample5);
   1.741 @@ -6624,10 +6624,10 @@
   1.742      register int eps = 0;
   1.743      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
   1.744      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
   1.745 -    const float *target = ((const float *) cvt->buf) - 1;
   1.746 +    const float *target = ((const float *) cvt->buf);
   1.747      float sample0 = SDL_SwapFloatBE(src[0]);
   1.748      float last_sample0 = sample0;
   1.749 -    while (dst > target) {
   1.750 +    while (dst >= target) {
   1.751          dst[0] = SDL_SwapFloatBE(sample0);
   1.752          dst--;
   1.753          eps += srcsize;
   1.754 @@ -6688,12 +6688,12 @@
   1.755      register int eps = 0;
   1.756      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
   1.757      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
   1.758 -    const float *target = ((const float *) cvt->buf) - 2;
   1.759 +    const float *target = ((const float *) cvt->buf);
   1.760      float sample1 = SDL_SwapFloatBE(src[1]);
   1.761      float sample0 = SDL_SwapFloatBE(src[0]);
   1.762      float last_sample1 = sample1;
   1.763      float last_sample0 = sample0;
   1.764 -    while (dst > target) {
   1.765 +    while (dst >= target) {
   1.766          dst[1] = SDL_SwapFloatBE(sample1);
   1.767          dst[0] = SDL_SwapFloatBE(sample0);
   1.768          dst -= 2;
   1.769 @@ -6762,7 +6762,7 @@
   1.770      register int eps = 0;
   1.771      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
   1.772      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
   1.773 -    const float *target = ((const float *) cvt->buf) - 4;
   1.774 +    const float *target = ((const float *) cvt->buf);
   1.775      float sample3 = SDL_SwapFloatBE(src[3]);
   1.776      float sample2 = SDL_SwapFloatBE(src[2]);
   1.777      float sample1 = SDL_SwapFloatBE(src[1]);
   1.778 @@ -6771,7 +6771,7 @@
   1.779      float last_sample2 = sample2;
   1.780      float last_sample1 = sample1;
   1.781      float last_sample0 = sample0;
   1.782 -    while (dst > target) {
   1.783 +    while (dst >= target) {
   1.784          dst[3] = SDL_SwapFloatBE(sample3);
   1.785          dst[2] = SDL_SwapFloatBE(sample2);
   1.786          dst[1] = SDL_SwapFloatBE(sample1);
   1.787 @@ -6856,7 +6856,7 @@
   1.788      register int eps = 0;
   1.789      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
   1.790      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
   1.791 -    const float *target = ((const float *) cvt->buf) - 6;
   1.792 +    const float *target = ((const float *) cvt->buf);
   1.793      float sample5 = SDL_SwapFloatBE(src[5]);
   1.794      float sample4 = SDL_SwapFloatBE(src[4]);
   1.795      float sample3 = SDL_SwapFloatBE(src[3]);
   1.796 @@ -6869,7 +6869,7 @@
   1.797      float last_sample2 = sample2;
   1.798      float last_sample1 = sample1;
   1.799      float last_sample0 = sample0;
   1.800 -    while (dst > target) {
   1.801 +    while (dst >= target) {
   1.802          dst[5] = SDL_SwapFloatBE(sample5);
   1.803          dst[4] = SDL_SwapFloatBE(sample4);
   1.804          dst[3] = SDL_SwapFloatBE(sample3);
   1.805 @@ -6970,7 +6970,7 @@
   1.806      register int eps = 0;
   1.807      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
   1.808      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
   1.809 -    const float *target = ((const float *) cvt->buf) - 8;
   1.810 +    const float *target = ((const float *) cvt->buf);
   1.811      float sample7 = SDL_SwapFloatBE(src[7]);
   1.812      float sample6 = SDL_SwapFloatBE(src[6]);
   1.813      float sample5 = SDL_SwapFloatBE(src[5]);
   1.814 @@ -6987,7 +6987,7 @@
   1.815      float last_sample2 = sample2;
   1.816      float last_sample1 = sample1;
   1.817      float last_sample0 = sample0;
   1.818 -    while (dst > target) {
   1.819 +    while (dst >= target) {
   1.820          dst[7] = SDL_SwapFloatBE(sample7);
   1.821          dst[6] = SDL_SwapFloatBE(sample6);
   1.822          dst[5] = SDL_SwapFloatBE(sample5);
   1.823 @@ -7105,9 +7105,9 @@
   1.824      const int dstsize = cvt->len_cvt * 2;
   1.825      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1;
   1.826      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.827 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 1;
   1.828 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.829      Sint16 last_sample0 = (Sint16) src[0];
   1.830 -    while (dst > target) {
   1.831 +    while (dst >= target) {
   1.832          const Sint16 sample0 = (Sint16) src[0];
   1.833          src--;
   1.834          dst[1] = (Uint8) ((sample0 + last_sample0) >> 1);
   1.835 @@ -7158,9 +7158,9 @@
   1.836      const int dstsize = cvt->len_cvt * 4;
   1.837      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1;
   1.838      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.839 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 1;
   1.840 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.841      Sint16 last_sample0 = (Sint16) src[0];
   1.842 -    while (dst > target) {
   1.843 +    while (dst >= target) {
   1.844          const Sint16 sample0 = (Sint16) src[0];
   1.845          src--;
   1.846          dst[3] = (Uint8) sample0;
   1.847 @@ -7213,10 +7213,10 @@
   1.848      const int dstsize = cvt->len_cvt * 2;
   1.849      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2;
   1.850      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.851 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 2;
   1.852 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.853      Sint16 last_sample1 = (Sint16) src[1];
   1.854      Sint16 last_sample0 = (Sint16) src[0];
   1.855 -    while (dst > target) {
   1.856 +    while (dst >= target) {
   1.857          const Sint16 sample1 = (Sint16) src[1];
   1.858          const Sint16 sample0 = (Sint16) src[0];
   1.859          src -= 2;
   1.860 @@ -7275,10 +7275,10 @@
   1.861      const int dstsize = cvt->len_cvt * 4;
   1.862      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2;
   1.863      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
   1.864 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 2;
   1.865 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.866      Sint16 last_sample1 = (Sint16) src[1];
   1.867      Sint16 last_sample0 = (Sint16) src[0];
   1.868 -    while (dst > target) {
   1.869 +    while (dst >= target) {
   1.870          const Sint16 sample1 = (Sint16) src[1];
   1.871          const Sint16 sample0 = (Sint16) src[0];
   1.872          src -= 2;
   1.873 @@ -7341,12 +7341,12 @@
   1.874      const int dstsize = cvt->len_cvt * 2;
   1.875      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4;
   1.876      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.877 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 4;
   1.878 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.879      Sint16 last_sample3 = (Sint16) src[3];
   1.880      Sint16 last_sample2 = (Sint16) src[2];
   1.881      Sint16 last_sample1 = (Sint16) src[1];
   1.882      Sint16 last_sample0 = (Sint16) src[0];
   1.883 -    while (dst > target) {
   1.884 +    while (dst >= target) {
   1.885          const Sint16 sample3 = (Sint16) src[3];
   1.886          const Sint16 sample2 = (Sint16) src[2];
   1.887          const Sint16 sample1 = (Sint16) src[1];
   1.888 @@ -7421,12 +7421,12 @@
   1.889      const int dstsize = cvt->len_cvt * 4;
   1.890      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4;
   1.891      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
   1.892 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 4;
   1.893 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.894      Sint16 last_sample3 = (Sint16) src[3];
   1.895      Sint16 last_sample2 = (Sint16) src[2];
   1.896      Sint16 last_sample1 = (Sint16) src[1];
   1.897      Sint16 last_sample0 = (Sint16) src[0];
   1.898 -    while (dst > target) {
   1.899 +    while (dst >= target) {
   1.900          const Sint16 sample3 = (Sint16) src[3];
   1.901          const Sint16 sample2 = (Sint16) src[2];
   1.902          const Sint16 sample1 = (Sint16) src[1];
   1.903 @@ -7509,14 +7509,14 @@
   1.904      const int dstsize = cvt->len_cvt * 2;
   1.905      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6;
   1.906      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.907 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 6;
   1.908 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.909      Sint16 last_sample5 = (Sint16) src[5];
   1.910      Sint16 last_sample4 = (Sint16) src[4];
   1.911      Sint16 last_sample3 = (Sint16) src[3];
   1.912      Sint16 last_sample2 = (Sint16) src[2];
   1.913      Sint16 last_sample1 = (Sint16) src[1];
   1.914      Sint16 last_sample0 = (Sint16) src[0];
   1.915 -    while (dst > target) {
   1.916 +    while (dst >= target) {
   1.917          const Sint16 sample5 = (Sint16) src[5];
   1.918          const Sint16 sample4 = (Sint16) src[4];
   1.919          const Sint16 sample3 = (Sint16) src[3];
   1.920 @@ -7607,14 +7607,14 @@
   1.921      const int dstsize = cvt->len_cvt * 4;
   1.922      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6;
   1.923      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
   1.924 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 6;
   1.925 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.926      Sint16 last_sample5 = (Sint16) src[5];
   1.927      Sint16 last_sample4 = (Sint16) src[4];
   1.928      Sint16 last_sample3 = (Sint16) src[3];
   1.929      Sint16 last_sample2 = (Sint16) src[2];
   1.930      Sint16 last_sample1 = (Sint16) src[1];
   1.931      Sint16 last_sample0 = (Sint16) src[0];
   1.932 -    while (dst > target) {
   1.933 +    while (dst >= target) {
   1.934          const Sint16 sample5 = (Sint16) src[5];
   1.935          const Sint16 sample4 = (Sint16) src[4];
   1.936          const Sint16 sample3 = (Sint16) src[3];
   1.937 @@ -7717,7 +7717,7 @@
   1.938      const int dstsize = cvt->len_cvt * 2;
   1.939      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8;
   1.940      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.941 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 8;
   1.942 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.943      Sint16 last_sample7 = (Sint16) src[7];
   1.944      Sint16 last_sample6 = (Sint16) src[6];
   1.945      Sint16 last_sample5 = (Sint16) src[5];
   1.946 @@ -7726,7 +7726,7 @@
   1.947      Sint16 last_sample2 = (Sint16) src[2];
   1.948      Sint16 last_sample1 = (Sint16) src[1];
   1.949      Sint16 last_sample0 = (Sint16) src[0];
   1.950 -    while (dst > target) {
   1.951 +    while (dst >= target) {
   1.952          const Sint16 sample7 = (Sint16) src[7];
   1.953          const Sint16 sample6 = (Sint16) src[6];
   1.954          const Sint16 sample5 = (Sint16) src[5];
   1.955 @@ -7833,7 +7833,7 @@
   1.956      const int dstsize = cvt->len_cvt * 4;
   1.957      Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8;
   1.958      const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
   1.959 -    const Uint8 *target = ((const Uint8 *) cvt->buf) - 8;
   1.960 +    const Uint8 *target = ((const Uint8 *) cvt->buf);
   1.961      Sint16 last_sample7 = (Sint16) src[7];
   1.962      Sint16 last_sample6 = (Sint16) src[6];
   1.963      Sint16 last_sample5 = (Sint16) src[5];
   1.964 @@ -7842,7 +7842,7 @@
   1.965      Sint16 last_sample2 = (Sint16) src[2];
   1.966      Sint16 last_sample1 = (Sint16) src[1];
   1.967      Sint16 last_sample0 = (Sint16) src[0];
   1.968 -    while (dst > target) {
   1.969 +    while (dst >= target) {
   1.970          const Sint16 sample7 = (Sint16) src[7];
   1.971          const Sint16 sample6 = (Sint16) src[6];
   1.972          const Sint16 sample5 = (Sint16) src[5];
   1.973 @@ -7965,9 +7965,9 @@
   1.974      const int dstsize = cvt->len_cvt * 2;
   1.975      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1;
   1.976      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.977 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 1;
   1.978 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.979      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.980 -    while (dst > target) {
   1.981 +    while (dst >= target) {
   1.982          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.983          src--;
   1.984          dst[1] = (Sint8) ((sample0 + last_sample0) >> 1);
   1.985 @@ -8018,9 +8018,9 @@
   1.986      const int dstsize = cvt->len_cvt * 4;
   1.987      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1;
   1.988      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
   1.989 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 1;
   1.990 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
   1.991      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
   1.992 -    while (dst > target) {
   1.993 +    while (dst >= target) {
   1.994          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
   1.995          src--;
   1.996          dst[3] = (Sint8) sample0;
   1.997 @@ -8073,10 +8073,10 @@
   1.998      const int dstsize = cvt->len_cvt * 2;
   1.999      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2;
  1.1000      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1001 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 2;
  1.1002 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1003      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1004      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1005 -    while (dst > target) {
  1.1006 +    while (dst >= target) {
  1.1007          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
  1.1008          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
  1.1009          src -= 2;
  1.1010 @@ -8135,10 +8135,10 @@
  1.1011      const int dstsize = cvt->len_cvt * 4;
  1.1012      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2;
  1.1013      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1014 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 2;
  1.1015 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1016      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1017      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1018 -    while (dst > target) {
  1.1019 +    while (dst >= target) {
  1.1020          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
  1.1021          const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
  1.1022          src -= 2;
  1.1023 @@ -8201,12 +8201,12 @@
  1.1024      const int dstsize = cvt->len_cvt * 2;
  1.1025      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4;
  1.1026      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1027 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 4;
  1.1028 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1029      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
  1.1030      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1031      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1032      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1033 -    while (dst > target) {
  1.1034 +    while (dst >= target) {
  1.1035          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
  1.1036          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
  1.1037          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
  1.1038 @@ -8281,12 +8281,12 @@
  1.1039      const int dstsize = cvt->len_cvt * 4;
  1.1040      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4;
  1.1041      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1042 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 4;
  1.1043 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1044      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
  1.1045      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1046      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1047      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1048 -    while (dst > target) {
  1.1049 +    while (dst >= target) {
  1.1050          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
  1.1051          const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
  1.1052          const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
  1.1053 @@ -8369,14 +8369,14 @@
  1.1054      const int dstsize = cvt->len_cvt * 2;
  1.1055      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6;
  1.1056      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1057 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 6;
  1.1058 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1059      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
  1.1060      Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
  1.1061      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
  1.1062      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1063      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1064      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1065 -    while (dst > target) {
  1.1066 +    while (dst >= target) {
  1.1067          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
  1.1068          const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
  1.1069          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
  1.1070 @@ -8467,14 +8467,14 @@
  1.1071      const int dstsize = cvt->len_cvt * 4;
  1.1072      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6;
  1.1073      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1074 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 6;
  1.1075 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1076      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
  1.1077      Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
  1.1078      Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
  1.1079      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1080      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1081      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1082 -    while (dst > target) {
  1.1083 +    while (dst >= target) {
  1.1084          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
  1.1085          const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
  1.1086          const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
  1.1087 @@ -8577,7 +8577,7 @@
  1.1088      const int dstsize = cvt->len_cvt * 2;
  1.1089      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8;
  1.1090      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1091 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 8;
  1.1092 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1093      Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
  1.1094      Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
  1.1095      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
  1.1096 @@ -8586,7 +8586,7 @@
  1.1097      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1098      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1099      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1100 -    while (dst > target) {
  1.1101 +    while (dst >= target) {
  1.1102          const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
  1.1103          const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
  1.1104          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
  1.1105 @@ -8693,7 +8693,7 @@
  1.1106      const int dstsize = cvt->len_cvt * 4;
  1.1107      Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8;
  1.1108      const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1109 -    const Sint8 *target = ((const Sint8 *) cvt->buf) - 8;
  1.1110 +    const Sint8 *target = ((const Sint8 *) cvt->buf);
  1.1111      Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
  1.1112      Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
  1.1113      Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
  1.1114 @@ -8702,7 +8702,7 @@
  1.1115      Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
  1.1116      Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
  1.1117      Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
  1.1118 -    while (dst > target) {
  1.1119 +    while (dst >= target) {
  1.1120          const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
  1.1121          const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
  1.1122          const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
  1.1123 @@ -8825,9 +8825,9 @@
  1.1124      const int dstsize = cvt->len_cvt * 2;
  1.1125      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
  1.1126      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1127 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
  1.1128 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1129      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1130 -    while (dst > target) {
  1.1131 +    while (dst >= target) {
  1.1132          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1133          src--;
  1.1134          dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
  1.1135 @@ -8878,9 +8878,9 @@
  1.1136      const int dstsize = cvt->len_cvt * 4;
  1.1137      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
  1.1138      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1139 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
  1.1140 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1141      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1142 -    while (dst > target) {
  1.1143 +    while (dst >= target) {
  1.1144          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1145          src--;
  1.1146          dst[3] = (Uint16) sample0;
  1.1147 @@ -8933,10 +8933,10 @@
  1.1148      const int dstsize = cvt->len_cvt * 2;
  1.1149      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
  1.1150      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1151 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
  1.1152 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1153      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1154      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1155 -    while (dst > target) {
  1.1156 +    while (dst >= target) {
  1.1157          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1158          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1159          src -= 2;
  1.1160 @@ -8995,10 +8995,10 @@
  1.1161      const int dstsize = cvt->len_cvt * 4;
  1.1162      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
  1.1163      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1164 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
  1.1165 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1166      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1167      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1168 -    while (dst > target) {
  1.1169 +    while (dst >= target) {
  1.1170          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1171          const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1172          src -= 2;
  1.1173 @@ -9061,12 +9061,12 @@
  1.1174      const int dstsize = cvt->len_cvt * 2;
  1.1175      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
  1.1176      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1177 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
  1.1178 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1179      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1180      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1181      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1182      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1183 -    while (dst > target) {
  1.1184 +    while (dst >= target) {
  1.1185          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1186          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1187          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1188 @@ -9141,12 +9141,12 @@
  1.1189      const int dstsize = cvt->len_cvt * 4;
  1.1190      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
  1.1191      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1192 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
  1.1193 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1194      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1195      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1196      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1197      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1198 -    while (dst > target) {
  1.1199 +    while (dst >= target) {
  1.1200          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1201          const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1202          const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1203 @@ -9229,14 +9229,14 @@
  1.1204      const int dstsize = cvt->len_cvt * 2;
  1.1205      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
  1.1206      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1207 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
  1.1208 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1209      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1210      Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
  1.1211      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1212      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1213      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1214      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1215 -    while (dst > target) {
  1.1216 +    while (dst >= target) {
  1.1217          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1218          const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
  1.1219          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1220 @@ -9327,14 +9327,14 @@
  1.1221      const int dstsize = cvt->len_cvt * 4;
  1.1222      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
  1.1223      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1224 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
  1.1225 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1226      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1227      Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
  1.1228      Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1229      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1230      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1231      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1232 -    while (dst > target) {
  1.1233 +    while (dst >= target) {
  1.1234          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1235          const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
  1.1236          const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
  1.1237 @@ -9437,7 +9437,7 @@
  1.1238      const int dstsize = cvt->len_cvt * 2;
  1.1239      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
  1.1240      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1241 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
  1.1242 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1243      Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
  1.1244      Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
  1.1245      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1246 @@ -9446,7 +9446,7 @@
  1.1247      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1248      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1249      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1250 -    while (dst > target) {
  1.1251 +    while (dst >= target) {
  1.1252          const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
  1.1253          const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
  1.1254          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1255 @@ -9553,7 +9553,7 @@
  1.1256      const int dstsize = cvt->len_cvt * 4;
  1.1257      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
  1.1258      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1259 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
  1.1260 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1261      Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
  1.1262      Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
  1.1263      Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1264 @@ -9562,7 +9562,7 @@
  1.1265      Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
  1.1266      Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
  1.1267      Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
  1.1268 -    while (dst > target) {
  1.1269 +    while (dst >= target) {
  1.1270          const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
  1.1271          const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
  1.1272          const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
  1.1273 @@ -9685,9 +9685,9 @@
  1.1274      const int dstsize = cvt->len_cvt * 2;
  1.1275      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
  1.1276      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1277 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
  1.1278 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1279      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1280 -    while (dst > target) {
  1.1281 +    while (dst >= target) {
  1.1282          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1283          src--;
  1.1284          dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
  1.1285 @@ -9738,9 +9738,9 @@
  1.1286      const int dstsize = cvt->len_cvt * 4;
  1.1287      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
  1.1288      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1289 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
  1.1290 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1291      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1292 -    while (dst > target) {
  1.1293 +    while (dst >= target) {
  1.1294          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1295          src--;
  1.1296          dst[3] = (Sint16) sample0;
  1.1297 @@ -9793,10 +9793,10 @@
  1.1298      const int dstsize = cvt->len_cvt * 2;
  1.1299      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
  1.1300      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1301 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
  1.1302 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1303      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1304      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1305 -    while (dst > target) {
  1.1306 +    while (dst >= target) {
  1.1307          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1308          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1309          src -= 2;
  1.1310 @@ -9855,10 +9855,10 @@
  1.1311      const int dstsize = cvt->len_cvt * 4;
  1.1312      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
  1.1313      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1314 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
  1.1315 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1316      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1317      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1318 -    while (dst > target) {
  1.1319 +    while (dst >= target) {
  1.1320          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1321          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1322          src -= 2;
  1.1323 @@ -9921,12 +9921,12 @@
  1.1324      const int dstsize = cvt->len_cvt * 2;
  1.1325      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
  1.1326      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1327 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
  1.1328 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1329      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1330      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1331      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1332      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1333 -    while (dst > target) {
  1.1334 +    while (dst >= target) {
  1.1335          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1336          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1337          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1338 @@ -10001,12 +10001,12 @@
  1.1339      const int dstsize = cvt->len_cvt * 4;
  1.1340      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
  1.1341      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1342 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
  1.1343 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1344      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1345      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1346      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1347      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1348 -    while (dst > target) {
  1.1349 +    while (dst >= target) {
  1.1350          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1351          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1352          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1353 @@ -10089,14 +10089,14 @@
  1.1354      const int dstsize = cvt->len_cvt * 2;
  1.1355      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
  1.1356      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1357 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
  1.1358 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1359      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1360      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
  1.1361      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1362      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1363      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1364      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1365 -    while (dst > target) {
  1.1366 +    while (dst >= target) {
  1.1367          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1368          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
  1.1369          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1370 @@ -10187,14 +10187,14 @@
  1.1371      const int dstsize = cvt->len_cvt * 4;
  1.1372      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
  1.1373      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1374 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
  1.1375 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1376      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1377      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
  1.1378      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1379      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1380      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1381      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1382 -    while (dst > target) {
  1.1383 +    while (dst >= target) {
  1.1384          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1385          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
  1.1386          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
  1.1387 @@ -10297,7 +10297,7 @@
  1.1388      const int dstsize = cvt->len_cvt * 2;
  1.1389      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
  1.1390      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1391 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
  1.1392 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1393      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
  1.1394      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
  1.1395      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1396 @@ -10306,7 +10306,7 @@
  1.1397      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1398      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1399      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1400 -    while (dst > target) {
  1.1401 +    while (dst >= target) {
  1.1402          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
  1.1403          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
  1.1404          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1405 @@ -10413,7 +10413,7 @@
  1.1406      const int dstsize = cvt->len_cvt * 4;
  1.1407      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
  1.1408      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1409 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
  1.1410 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1411      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
  1.1412      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
  1.1413      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1414 @@ -10422,7 +10422,7 @@
  1.1415      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
  1.1416      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
  1.1417      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
  1.1418 -    while (dst > target) {
  1.1419 +    while (dst >= target) {
  1.1420          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
  1.1421          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
  1.1422          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
  1.1423 @@ -10545,9 +10545,9 @@
  1.1424      const int dstsize = cvt->len_cvt * 2;
  1.1425      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
  1.1426      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1427 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
  1.1428 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1429      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1430 -    while (dst > target) {
  1.1431 +    while (dst >= target) {
  1.1432          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1433          src--;
  1.1434          dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
  1.1435 @@ -10598,9 +10598,9 @@
  1.1436      const int dstsize = cvt->len_cvt * 4;
  1.1437      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
  1.1438      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1439 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 1;
  1.1440 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1441      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1442 -    while (dst > target) {
  1.1443 +    while (dst >= target) {
  1.1444          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1445          src--;
  1.1446          dst[3] = (Uint16) sample0;
  1.1447 @@ -10653,10 +10653,10 @@
  1.1448      const int dstsize = cvt->len_cvt * 2;
  1.1449      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
  1.1450      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1451 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
  1.1452 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1453      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1454      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1455 -    while (dst > target) {
  1.1456 +    while (dst >= target) {
  1.1457          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1458          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1459          src -= 2;
  1.1460 @@ -10715,10 +10715,10 @@
  1.1461      const int dstsize = cvt->len_cvt * 4;
  1.1462      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
  1.1463      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1464 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 2;
  1.1465 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1466      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1467      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1468 -    while (dst > target) {
  1.1469 +    while (dst >= target) {
  1.1470          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1471          const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1472          src -= 2;
  1.1473 @@ -10781,12 +10781,12 @@
  1.1474      const int dstsize = cvt->len_cvt * 2;
  1.1475      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
  1.1476      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1477 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
  1.1478 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1479      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1480      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1481      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1482      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1483 -    while (dst > target) {
  1.1484 +    while (dst >= target) {
  1.1485          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1486          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1487          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1488 @@ -10861,12 +10861,12 @@
  1.1489      const int dstsize = cvt->len_cvt * 4;
  1.1490      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
  1.1491      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1492 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 4;
  1.1493 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1494      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1495      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1496      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1497      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1498 -    while (dst > target) {
  1.1499 +    while (dst >= target) {
  1.1500          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1501          const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1502          const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1503 @@ -10949,14 +10949,14 @@
  1.1504      const int dstsize = cvt->len_cvt * 2;
  1.1505      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
  1.1506      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1507 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
  1.1508 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1509      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1510      Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
  1.1511      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1512      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1513      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1514      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1515 -    while (dst > target) {
  1.1516 +    while (dst >= target) {
  1.1517          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1518          const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
  1.1519          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1520 @@ -11047,14 +11047,14 @@
  1.1521      const int dstsize = cvt->len_cvt * 4;
  1.1522      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
  1.1523      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1524 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 6;
  1.1525 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1526      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1527      Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
  1.1528      Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1529      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1530      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1531      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1532 -    while (dst > target) {
  1.1533 +    while (dst >= target) {
  1.1534          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1535          const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
  1.1536          const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
  1.1537 @@ -11157,7 +11157,7 @@
  1.1538      const int dstsize = cvt->len_cvt * 2;
  1.1539      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
  1.1540      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1541 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
  1.1542 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1543      Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
  1.1544      Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
  1.1545      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1546 @@ -11166,7 +11166,7 @@
  1.1547      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1548      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1549      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1550 -    while (dst > target) {
  1.1551 +    while (dst >= target) {
  1.1552          const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
  1.1553          const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
  1.1554          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1555 @@ -11273,7 +11273,7 @@
  1.1556      const int dstsize = cvt->len_cvt * 4;
  1.1557      Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
  1.1558      const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1559 -    const Uint16 *target = ((const Uint16 *) cvt->buf) - 8;
  1.1560 +    const Uint16 *target = ((const Uint16 *) cvt->buf);
  1.1561      Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
  1.1562      Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
  1.1563      Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1564 @@ -11282,7 +11282,7 @@
  1.1565      Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
  1.1566      Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
  1.1567      Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
  1.1568 -    while (dst > target) {
  1.1569 +    while (dst >= target) {
  1.1570          const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
  1.1571          const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
  1.1572          const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
  1.1573 @@ -11405,9 +11405,9 @@
  1.1574      const int dstsize = cvt->len_cvt * 2;
  1.1575      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
  1.1576      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1577 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
  1.1578 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1579      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1580 -    while (dst > target) {
  1.1581 +    while (dst >= target) {
  1.1582          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1583          src--;
  1.1584          dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
  1.1585 @@ -11458,9 +11458,9 @@
  1.1586      const int dstsize = cvt->len_cvt * 4;
  1.1587      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
  1.1588      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1589 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 1;
  1.1590 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1591      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1592 -    while (dst > target) {
  1.1593 +    while (dst >= target) {
  1.1594          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1595          src--;
  1.1596          dst[3] = (Sint16) sample0;
  1.1597 @@ -11513,10 +11513,10 @@
  1.1598      const int dstsize = cvt->len_cvt * 2;
  1.1599      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
  1.1600      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1601 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
  1.1602 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1603      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1604      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1605 -    while (dst > target) {
  1.1606 +    while (dst >= target) {
  1.1607          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1608          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1609          src -= 2;
  1.1610 @@ -11575,10 +11575,10 @@
  1.1611      const int dstsize = cvt->len_cvt * 4;
  1.1612      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
  1.1613      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1614 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 2;
  1.1615 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1616      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1617      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1618 -    while (dst > target) {
  1.1619 +    while (dst >= target) {
  1.1620          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1621          const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1622          src -= 2;
  1.1623 @@ -11641,12 +11641,12 @@
  1.1624      const int dstsize = cvt->len_cvt * 2;
  1.1625      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
  1.1626      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1627 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
  1.1628 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1629      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1630      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1631      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1632      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1633 -    while (dst > target) {
  1.1634 +    while (dst >= target) {
  1.1635          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1636          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1637          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1638 @@ -11721,12 +11721,12 @@
  1.1639      const int dstsize = cvt->len_cvt * 4;
  1.1640      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
  1.1641      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1642 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 4;
  1.1643 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1644      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1645      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1646      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1647      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1648 -    while (dst > target) {
  1.1649 +    while (dst >= target) {
  1.1650          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1651          const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1652          const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1653 @@ -11809,14 +11809,14 @@
  1.1654      const int dstsize = cvt->len_cvt * 2;
  1.1655      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
  1.1656      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1657 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
  1.1658 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1659      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1660      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1661      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1662      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1663      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1664      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1665 -    while (dst > target) {
  1.1666 +    while (dst >= target) {
  1.1667          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1668          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1669          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1670 @@ -11907,14 +11907,14 @@
  1.1671      const int dstsize = cvt->len_cvt * 4;
  1.1672      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
  1.1673      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1674 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 6;
  1.1675 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1676      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1677      Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1678      Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1679      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1680      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1681      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1682 -    while (dst > target) {
  1.1683 +    while (dst >= target) {
  1.1684          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1685          const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
  1.1686          const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
  1.1687 @@ -12017,7 +12017,7 @@
  1.1688      const int dstsize = cvt->len_cvt * 2;
  1.1689      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
  1.1690      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1691 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
  1.1692 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1693      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1694      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1695      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1696 @@ -12026,7 +12026,7 @@
  1.1697      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1698      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1699      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1700 -    while (dst > target) {
  1.1701 +    while (dst >= target) {
  1.1702          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1703          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1704          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1705 @@ -12133,7 +12133,7 @@
  1.1706      const int dstsize = cvt->len_cvt * 4;
  1.1707      Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
  1.1708      const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1709 -    const Sint16 *target = ((const Sint16 *) cvt->buf) - 8;
  1.1710 +    const Sint16 *target = ((const Sint16 *) cvt->buf);
  1.1711      Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1712      Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1713      Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1714 @@ -12142,7 +12142,7 @@
  1.1715      Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
  1.1716      Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
  1.1717      Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
  1.1718 -    while (dst > target) {
  1.1719 +    while (dst >= target) {
  1.1720          const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
  1.1721          const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
  1.1722          const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
  1.1723 @@ -12265,9 +12265,9 @@
  1.1724      const int dstsize = cvt->len_cvt * 2;
  1.1725      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
  1.1726      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1727 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1728 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1729      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1730 -    while (dst > target) {
  1.1731 +    while (dst >= target) {
  1.1732          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1733          src--;
  1.1734          dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1735 @@ -12318,9 +12318,9 @@
  1.1736      const int dstsize = cvt->len_cvt * 4;
  1.1737      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
  1.1738      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1739 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1740 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1741      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1742 -    while (dst > target) {
  1.1743 +    while (dst >= target) {
  1.1744          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1745          src--;
  1.1746          dst[3] = (Sint32) sample0;
  1.1747 @@ -12373,10 +12373,10 @@
  1.1748      const int dstsize = cvt->len_cvt * 2;
  1.1749      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
  1.1750      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1751 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1752 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1753      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1754      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1755 -    while (dst > target) {
  1.1756 +    while (dst >= target) {
  1.1757          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1758          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1759          src -= 2;
  1.1760 @@ -12435,10 +12435,10 @@
  1.1761      const int dstsize = cvt->len_cvt * 4;
  1.1762      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
  1.1763      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1764 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1765 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1766      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1767      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1768 -    while (dst > target) {
  1.1769 +    while (dst >= target) {
  1.1770          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1771          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1772          src -= 2;
  1.1773 @@ -12501,12 +12501,12 @@
  1.1774      const int dstsize = cvt->len_cvt * 2;
  1.1775      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
  1.1776      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1777 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
  1.1778 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1779      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1780      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1781      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1782      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1783 -    while (dst > target) {
  1.1784 +    while (dst >= target) {
  1.1785          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1786          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1787          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1788 @@ -12581,12 +12581,12 @@
  1.1789      const int dstsize = cvt->len_cvt * 4;
  1.1790      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
  1.1791      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1792 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
  1.1793 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1794      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1795      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1796      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1797      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1798 -    while (dst > target) {
  1.1799 +    while (dst >= target) {
  1.1800          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1801          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1802          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1803 @@ -12669,14 +12669,14 @@
  1.1804      const int dstsize = cvt->len_cvt * 2;
  1.1805      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
  1.1806      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1807 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
  1.1808 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1809      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1810      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1811      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1812      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1813      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1814      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1815 -    while (dst > target) {
  1.1816 +    while (dst >= target) {
  1.1817          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1818          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1819          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1820 @@ -12767,14 +12767,14 @@
  1.1821      const int dstsize = cvt->len_cvt * 4;
  1.1822      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
  1.1823      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1824 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
  1.1825 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1826      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1827      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1828      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1829      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1830      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1831      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1832 -    while (dst > target) {
  1.1833 +    while (dst >= target) {
  1.1834          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1835          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
  1.1836          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
  1.1837 @@ -12877,7 +12877,7 @@
  1.1838      const int dstsize = cvt->len_cvt * 2;
  1.1839      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
  1.1840      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1841 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
  1.1842 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1843      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1844      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1845      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1846 @@ -12886,7 +12886,7 @@
  1.1847      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1848      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1849      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1850 -    while (dst > target) {
  1.1851 +    while (dst >= target) {
  1.1852          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1853          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1854          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1855 @@ -12993,7 +12993,7 @@
  1.1856      const int dstsize = cvt->len_cvt * 4;
  1.1857      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
  1.1858      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1859 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
  1.1860 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1861      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1862      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1863      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1864 @@ -13002,7 +13002,7 @@
  1.1865      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
  1.1866      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
  1.1867      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
  1.1868 -    while (dst > target) {
  1.1869 +    while (dst >= target) {
  1.1870          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
  1.1871          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
  1.1872          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
  1.1873 @@ -13125,9 +13125,9 @@
  1.1874      const int dstsize = cvt->len_cvt * 2;
  1.1875      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
  1.1876      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1877 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1878 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1879      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1880 -    while (dst > target) {
  1.1881 +    while (dst >= target) {
  1.1882          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1883          src--;
  1.1884          dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
  1.1885 @@ -13178,9 +13178,9 @@
  1.1886      const int dstsize = cvt->len_cvt * 4;
  1.1887      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
  1.1888      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
  1.1889 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 1;
  1.1890 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1891      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1892 -    while (dst > target) {
  1.1893 +    while (dst >= target) {
  1.1894          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1895          src--;
  1.1896          dst[3] = (Sint32) sample0;
  1.1897 @@ -13233,10 +13233,10 @@
  1.1898      const int dstsize = cvt->len_cvt * 2;
  1.1899      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
  1.1900      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1901 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1902 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1903      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1904      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1905 -    while (dst > target) {
  1.1906 +    while (dst >= target) {
  1.1907          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1908          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1909          src -= 2;
  1.1910 @@ -13295,10 +13295,10 @@
  1.1911      const int dstsize = cvt->len_cvt * 4;
  1.1912      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
  1.1913      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
  1.1914 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 2;
  1.1915 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1916      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1917      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1918 -    while (dst > target) {
  1.1919 +    while (dst >= target) {
  1.1920          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1921          const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1922          src -= 2;
  1.1923 @@ -13361,12 +13361,12 @@
  1.1924      const int dstsize = cvt->len_cvt * 2;
  1.1925      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
  1.1926      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1927 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
  1.1928 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1929      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1930      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1931      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1932      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1933 -    while (dst > target) {
  1.1934 +    while (dst >= target) {
  1.1935          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1936          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1937          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1938 @@ -13441,12 +13441,12 @@
  1.1939      const int dstsize = cvt->len_cvt * 4;
  1.1940      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
  1.1941      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
  1.1942 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 4;
  1.1943 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1944      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1945      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1946      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1947      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1948 -    while (dst > target) {
  1.1949 +    while (dst >= target) {
  1.1950          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1951          const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1952          const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1953 @@ -13529,14 +13529,14 @@
  1.1954      const int dstsize = cvt->len_cvt * 2;
  1.1955      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
  1.1956      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1957 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
  1.1958 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1959      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1960      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1961      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1962      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1963      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1964      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1965 -    while (dst > target) {
  1.1966 +    while (dst >= target) {
  1.1967          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1968          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1969          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1970 @@ -13627,14 +13627,14 @@
  1.1971      const int dstsize = cvt->len_cvt * 4;
  1.1972      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
  1.1973      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
  1.1974 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 6;
  1.1975 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1976      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1977      Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1978      Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1979      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1980      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1981      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.1982 -    while (dst > target) {
  1.1983 +    while (dst >= target) {
  1.1984          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1985          const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
  1.1986          const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
  1.1987 @@ -13737,7 +13737,7 @@
  1.1988      const int dstsize = cvt->len_cvt * 2;
  1.1989      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
  1.1990      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.1991 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
  1.1992 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.1993      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.1994      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.1995      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.1996 @@ -13746,7 +13746,7 @@
  1.1997      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.1998      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.1999      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.2000 -    while (dst > target) {
  1.2001 +    while (dst >= target) {
  1.2002          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.2003          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.2004          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.2005 @@ -13853,7 +13853,7 @@
  1.2006      const int dstsize = cvt->len_cvt * 4;
  1.2007      Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
  1.2008      const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
  1.2009 -    const Sint32 *target = ((const Sint32 *) cvt->buf) - 8;
  1.2010 +    const Sint32 *target = ((const Sint32 *) cvt->buf);
  1.2011      Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.2012      Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.2013      Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.2014 @@ -13862,7 +13862,7 @@
  1.2015      Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
  1.2016      Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
  1.2017      Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
  1.2018 -    while (dst > target) {
  1.2019 +    while (dst >= target) {
  1.2020          const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
  1.2021          const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
  1.2022          const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
  1.2023 @@ -13985,9 +13985,9 @@
  1.2024      const int dstsize = cvt->len_cvt * 2;
  1.2025      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
  1.2026      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.2027 -    const float *target = ((const float *) cvt->buf) - 1;
  1.2028 +    const float *target = ((const float *) cvt->buf);
  1.2029      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2030 -    while (dst > target) {
  1.2031 +    while (dst >= target) {
  1.2032          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2033          src--;
  1.2034          dst[1] = (float) ((sample0 + last_sample0) * 0.5);
  1.2035 @@ -14038,9 +14038,9 @@
  1.2036      const int dstsize = cvt->len_cvt * 4;
  1.2037      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
  1.2038      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.2039 -    const float *target = ((const float *) cvt->buf) - 1;
  1.2040 +    const float *target = ((const float *) cvt->buf);
  1.2041      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2042 -    while (dst > target) {
  1.2043 +    while (dst >= target) {
  1.2044          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2045          src--;
  1.2046          dst[3] = (float) sample0;
  1.2047 @@ -14093,10 +14093,10 @@
  1.2048      const int dstsize = cvt->len_cvt * 2;
  1.2049      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
  1.2050      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  1.2051 -    const float *target = ((const float *) cvt->buf) - 2;
  1.2052 +    const float *target = ((const float *) cvt->buf);
  1.2053      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2054      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2055 -    while (dst > target) {
  1.2056 +    while (dst >= target) {
  1.2057          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2058          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2059          src -= 2;
  1.2060 @@ -14155,10 +14155,10 @@
  1.2061      const int dstsize = cvt->len_cvt * 4;
  1.2062      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
  1.2063      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  1.2064 -    const float *target = ((const float *) cvt->buf) - 2;
  1.2065 +    const float *target = ((const float *) cvt->buf);
  1.2066      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2067      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2068 -    while (dst > target) {
  1.2069 +    while (dst >= target) {
  1.2070          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2071          const double sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2072          src -= 2;
  1.2073 @@ -14221,12 +14221,12 @@
  1.2074      const int dstsize = cvt->len_cvt * 2;
  1.2075      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
  1.2076      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  1.2077 -    const float *target = ((const float *) cvt->buf) - 4;
  1.2078 +    const float *target = ((const float *) cvt->buf);
  1.2079      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2080      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2081      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2082      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2083 -    while (dst > target) {
  1.2084 +    while (dst >= target) {
  1.2085          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2086          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2087          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2088 @@ -14301,12 +14301,12 @@
  1.2089      const int dstsize = cvt->len_cvt * 4;
  1.2090      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
  1.2091      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  1.2092 -    const float *target = ((const float *) cvt->buf) - 4;
  1.2093 +    const float *target = ((const float *) cvt->buf);
  1.2094      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2095      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2096      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2097      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2098 -    while (dst > target) {
  1.2099 +    while (dst >= target) {
  1.2100          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2101          const double sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2102          const double sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2103 @@ -14389,14 +14389,14 @@
  1.2104      const int dstsize = cvt->len_cvt * 2;
  1.2105      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
  1.2106      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  1.2107 -    const float *target = ((const float *) cvt->buf) - 6;
  1.2108 +    const float *target = ((const float *) cvt->buf);
  1.2109      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2110      double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.2111      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2112      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2113      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2114      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2115 -    while (dst > target) {
  1.2116 +    while (dst >= target) {
  1.2117          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2118          const double sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.2119          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2120 @@ -14487,14 +14487,14 @@
  1.2121      const int dstsize = cvt->len_cvt * 4;
  1.2122      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
  1.2123      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  1.2124 -    const float *target = ((const float *) cvt->buf) - 6;
  1.2125 +    const float *target = ((const float *) cvt->buf);
  1.2126      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2127      double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.2128      double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2129      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2130      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2131      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2132 -    while (dst > target) {
  1.2133 +    while (dst >= target) {
  1.2134          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2135          const double sample4 = (double) SDL_SwapFloatLE(src[4]);
  1.2136          const double sample3 = (double) SDL_SwapFloatLE(src[3]);
  1.2137 @@ -14597,7 +14597,7 @@
  1.2138      const int dstsize = cvt->len_cvt * 2;
  1.2139      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
  1.2140      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  1.2141 -    const float *target = ((const float *) cvt->buf) - 8;
  1.2142 +    const float *target = ((const float *) cvt->buf);
  1.2143      double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.2144      double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.2145      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2146 @@ -14606,7 +14606,7 @@
  1.2147      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2148      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2149      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2150 -    while (dst > target) {
  1.2151 +    while (dst >= target) {
  1.2152          const double sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.2153          const double sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.2154          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2155 @@ -14713,7 +14713,7 @@
  1.2156      const int dstsize = cvt->len_cvt * 4;
  1.2157      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
  1.2158      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  1.2159 -    const float *target = ((const float *) cvt->buf) - 8;
  1.2160 +    const float *target = ((const float *) cvt->buf);
  1.2161      double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.2162      double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.2163      double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2164 @@ -14722,7 +14722,7 @@
  1.2165      double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
  1.2166      double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
  1.2167      double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
  1.2168 -    while (dst > target) {
  1.2169 +    while (dst >= target) {
  1.2170          const double sample7 = (double) SDL_SwapFloatLE(src[7]);
  1.2171          const double sample6 = (double) SDL_SwapFloatLE(src[6]);
  1.2172          const double sample5 = (double) SDL_SwapFloatLE(src[5]);
  1.2173 @@ -14845,9 +14845,9 @@
  1.2174      const int dstsize = cvt->len_cvt * 2;
  1.2175      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
  1.2176      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.2177 -    const float *target = ((const float *) cvt->buf) - 1;
  1.2178 +    const float *target = ((const float *) cvt->buf);
  1.2179      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2180 -    while (dst > target) {
  1.2181 +    while (dst >= target) {
  1.2182          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2183          src--;
  1.2184          dst[1] = (float) ((sample0 + last_sample0) * 0.5);
  1.2185 @@ -14898,9 +14898,9 @@
  1.2186      const int dstsize = cvt->len_cvt * 4;
  1.2187      float *dst = ((float *) (cvt->buf + dstsize)) - 1;
  1.2188      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
  1.2189 -    const float *target = ((const float *) cvt->buf) - 1;
  1.2190 +    const float *target = ((const float *) cvt->buf);
  1.2191      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2192 -    while (dst > target) {
  1.2193 +    while (dst >= target) {
  1.2194          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2195          src--;
  1.2196          dst[3] = (float) sample0;
  1.2197 @@ -14953,10 +14953,10 @@
  1.2198      const int dstsize = cvt->len_cvt * 2;
  1.2199      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
  1.2200      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  1.2201 -    const float *target = ((const float *) cvt->buf) - 2;
  1.2202 +    const float *target = ((const float *) cvt->buf);
  1.2203      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2204      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2205 -    while (dst > target) {
  1.2206 +    while (dst >= target) {
  1.2207          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2208          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2209          src -= 2;
  1.2210 @@ -15015,10 +15015,10 @@
  1.2211      const int dstsize = cvt->len_cvt * 4;
  1.2212      float *dst = ((float *) (cvt->buf + dstsize)) - 2;
  1.2213      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
  1.2214 -    const float *target = ((const float *) cvt->buf) - 2;
  1.2215 +    const float *target = ((const float *) cvt->buf);
  1.2216      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2217      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2218 -    while (dst > target) {
  1.2219 +    while (dst >= target) {
  1.2220          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2221          const double sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2222          src -= 2;
  1.2223 @@ -15081,12 +15081,12 @@
  1.2224      const int dstsize = cvt->len_cvt * 2;
  1.2225      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
  1.2226      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  1.2227 -    const float *target = ((const float *) cvt->buf) - 4;
  1.2228 +    const float *target = ((const float *) cvt->buf);
  1.2229      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2230      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2231      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2232      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2233 -    while (dst > target) {
  1.2234 +    while (dst >= target) {
  1.2235          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2236          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2237          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2238 @@ -15161,12 +15161,12 @@
  1.2239      const int dstsize = cvt->len_cvt * 4;
  1.2240      float *dst = ((float *) (cvt->buf + dstsize)) - 4;
  1.2241      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
  1.2242 -    const float *target = ((const float *) cvt->buf) - 4;
  1.2243 +    const float *target = ((const float *) cvt->buf);
  1.2244      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2245      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2246      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2247      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2248 -    while (dst > target) {
  1.2249 +    while (dst >= target) {
  1.2250          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2251          const double sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2252          const double sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2253 @@ -15249,14 +15249,14 @@
  1.2254      const int dstsize = cvt->len_cvt * 2;
  1.2255      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
  1.2256      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  1.2257 -    const float *target = ((const float *) cvt->buf) - 6;
  1.2258 +    const float *target = ((const float *) cvt->buf);
  1.2259      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2260      double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.2261      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2262      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2263      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2264      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2265 -    while (dst > target) {
  1.2266 +    while (dst >= target) {
  1.2267          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2268          const double sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.2269          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2270 @@ -15347,14 +15347,14 @@
  1.2271      const int dstsize = cvt->len_cvt * 4;
  1.2272      float *dst = ((float *) (cvt->buf + dstsize)) - 6;
  1.2273      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
  1.2274 -    const float *target = ((const float *) cvt->buf) - 6;
  1.2275 +    const float *target = ((const float *) cvt->buf);
  1.2276      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2277      double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.2278      double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2279      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2280      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2281      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2282 -    while (dst > target) {
  1.2283 +    while (dst >= target) {
  1.2284          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2285          const double sample4 = (double) SDL_SwapFloatBE(src[4]);
  1.2286          const double sample3 = (double) SDL_SwapFloatBE(src[3]);
  1.2287 @@ -15457,7 +15457,7 @@
  1.2288      const int dstsize = cvt->len_cvt * 2;
  1.2289      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
  1.2290      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  1.2291 -    const float *target = ((const float *) cvt->buf) - 8;
  1.2292 +    const float *target = ((const float *) cvt->buf);
  1.2293      double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.2294      double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.2295      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2296 @@ -15466,7 +15466,7 @@
  1.2297      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2298      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2299      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2300 -    while (dst > target) {
  1.2301 +    while (dst >= target) {
  1.2302          const double sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.2303          const double sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.2304          const double sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2305 @@ -15573,7 +15573,7 @@
  1.2306      const int dstsize = cvt->len_cvt * 4;
  1.2307      float *dst = ((float *) (cvt->buf + dstsize)) - 8;
  1.2308      const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
  1.2309 -    const float *target = ((const float *) cvt->buf) - 8;
  1.2310 +    const float *target = ((const float *) cvt->buf);
  1.2311      double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.2312      double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.2313      double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
  1.2314 @@ -15582,7 +15582,7 @@
  1.2315      double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
  1.2316      double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
  1.2317      double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
  1.2318 -    while (dst > target) {
  1.2319 +    while (dst >= target) {
  1.2320          const double sample7 = (double) SDL_SwapFloatBE(src[7]);
  1.2321          const double sample6 = (double) SDL_SwapFloatBE(src[6]);
  1.2322          const double sample5 = (double) SDL_SwapFloatBE(src[5]);