aboutsummaryrefslogtreecommitdiff
path: root/audio/rat30/files/patch-src__codec_encoder.c
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-07-14 17:32:14 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-07-14 17:32:14 +0000
commitec7b6ca63f38467601aba2fcf6fa0aa747b49c06 (patch)
tree28500d6e2d0ff46236d72d8f0a61816af1000ee1 /audio/rat30/files/patch-src__codec_encoder.c
parenteb62318cffc258304435acd7e33bdd0cb6d720b9 (diff)
Notes
Diffstat (limited to 'audio/rat30/files/patch-src__codec_encoder.c')
-rw-r--r--audio/rat30/files/patch-src__codec_encoder.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/rat30/files/patch-src__codec_encoder.c b/audio/rat30/files/patch-src__codec_encoder.c
new file mode 100644
index 000000000000..7f940d8cafcb
--- /dev/null
+++ b/audio/rat30/files/patch-src__codec_encoder.c
@@ -0,0 +1,12 @@
+--- ./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);