Revert "fix compress filter for big endian machines"
[paraslash.git] / aacdec.c
index c860a3b..9ed1201 100644 (file)
--- a/aacdec.c
+++ b/aacdec.c
@@ -154,8 +154,8 @@ static ssize_t aacdec(char *input_buffer, size_t len, struct filter_node *fn)
                goto out;
        for (i = 0; i < padd->frame_info.samples; i++) {
                short *s = (short *)outbuffer;
-               write_int16_host_endian(fn->buf + fn->loaded, s);
-               fn->loaded += 2;
+               fn->buf[fn->loaded++] = s[i] & 0xff;
+               fn->buf[fn->loaded++] = (s[i] >> 8) & 0xff;
        }
 success:
        ret = consumed;