Revision efeb298e

View differences:

libavcodec/dpcm.c
268 268
                n1 = (buf[in] >> 4) & 0xF;
269 269
                n2 = buf[in++] & 0xF;
270 270
                s->sample[0] += s->sol_table[n1];
271
                 if (s->sample[0] < 0) s->sample[0] = 0;
271
                if (s->sample[0] < 0) s->sample[0] = 0;
272 272
                if (s->sample[0] > 255) s->sample[0] = 255;
273 273
                output_samples[out++] = (s->sample[0] - 128) << 8;
274 274
                s->sample[s->channels - 1] += s->sol_table[n2];

Also available in: Unified diff