diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-01-22 21:35:23 +0100 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-01-22 21:41:38 +0100 |
commit | 7efbd632c2ee76e6868635ecfa09ea96b25c3a63 (patch) | |
tree | d3035da39685ba1bd5804be46f8d90abd99f6fd3 /apps | |
parent | 91b52a1ade10272da5af7020e6f28ce78ef22072 (diff) | |
download | rockbox-7efbd632c2ee76e6868635ecfa09ea96b25c3a63.tar.gz rockbox-7efbd632c2ee76e6868635ecfa09ea96b25c3a63.zip |
Fix wrong pointer arithmetic in the PDbox aiff header writing code
The SSND bit is intended to be right after the t_aiff-sized header.
Someone got cast vs + precedence rules wrong here.
Change-Id: Iccec75043ed5e35724331f9833b24f7e3b90c447
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/d_soundfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_soundfile.c b/apps/plugins/pdbox/PDa/src/d_soundfile.c index 81e2d4008e..3824cd5c37 100644 --- a/apps/plugins/pdbox/PDa/src/d_soundfile.c +++ b/apps/plugins/pdbox/PDa/src/d_soundfile.c | |||
@@ -683,7 +683,7 @@ static int create_soundfile(t_canvas *canvas, const char *filename, | |||
683 | { | 683 | { |
684 | long datasize = nframes * nchannels * bytespersamp; | 684 | long datasize = nframes * nchannels * bytespersamp; |
685 | long longtmp; | 685 | long longtmp; |
686 | t_datachunk *aiffdc = (t_datachunk *)headerbuf + sizeof(t_aiff); | 686 | t_datachunk *aiffdc = (t_datachunk *)(headerbuf + sizeof(t_aiff)); |
687 | static unsigned char AIFF_splrate[] = {0x40, 0x0e, 0xac, 0x44, 0, 0, 0, 0, 0, 0}; | 687 | static unsigned char AIFF_splrate[] = {0x40, 0x0e, 0xac, 0x44, 0, 0, 0, 0, 0, 0}; |
688 | static unsigned char datachunk_ID[] = {'S', 'S', 'N', 'D'}; | 688 | static unsigned char datachunk_ID[] = {'S', 'S', 'N', 'D'}; |
689 | if (strcmp(filenamebuf + strlen(filenamebuf)-4, ".aif") && | 689 | if (strcmp(filenamebuf + strlen(filenamebuf)-4, ".aif") && |