Revision 8ff5d1f3

View differences:

libavcodec/wmaprodec.c
1346 1346

  
1347 1347
    /** interleave samples and write them to the output buffer */
1348 1348
    for (i = 0; i < s->num_channels; i++) {
1349
        float* ptr;
1349
        float* ptr  = s->samples + i;
1350 1350
        int incr = s->num_channels;
1351 1351
        float* iptr = s->channel[i].out;
1352
        int x;
1353

  
1354
        ptr = s->samples + i;
1352
        float* iend = iptr + s->samples_per_frame;
1355 1353

  
1356
        for (x = 0; x < s->samples_per_frame; x++) {
1354
        while (iptr < iend) {
1357 1355
            *ptr = av_clipf(*iptr++, -1.0, 32767.0 / 32768.0);
1358 1356
            ptr += incr;
1359 1357
        }

Also available in: Unified diff