mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
16 lines
619 B
Plaintext
16 lines
619 B
Plaintext
$NetBSD: patch-ap,v 1.1 2007/12/01 22:03:18 rillig Exp $
|
|
|
|
src/codec_encoder.c:51: error: invalid lvalue in assignment
|
|
|
|
--- src/codec_encoder.c.orig 1998-08-15 19:16:48.000000000 +0000
|
|
+++ src/codec_encoder.c 2007-12-01 22:01:28.000000000 +0000
|
|
@@ -48,7 +48,7 @@ l16_encoding(sample *data, coded_unit *c
|
|
int i;
|
|
sample *d;
|
|
|
|
- d = (sample *)c->data = (char *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
|
|
+ d = (sample *)(c->data = (char *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE));
|
|
c->data_len = SAMPLES_PER_UNIT * BYTES_PER_SAMPLE;
|
|
for (i=0; i < SAMPLES_PER_UNIT; i++) {
|
|
*d++ = htons(*data);
|