freebsd-ports/audio/rat30/files/patch-src__codec_encoder.c
Andrew Pantyukhin ec7b6ca63f - Unbreak with gcc42
- Clean up a bit
2007-07-14 17:32:14 +00:00

12 lines
476 B
C

--- ./src/codec_encoder.c.orig 2007-07-14 20:50:06.000000000 +0400
+++ ./src/codec_encoder.c 2007-07-14 20:53:12.000000000 +0400
@@ -48,7 +48,8 @@
int i;
sample *d;
- d = (sample *)c->data = (sample *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
+ c->data = (sample *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
+ d = (sample *)c->data;
c->data_len = SAMPLES_PER_UNIT * BYTES_PER_SAMPLE;
for (i=0; i < SAMPLES_PER_UNIT; i++) {
*d++ = htons(*data);