forked from len0rd/rockbox
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
This commit is contained in:
parent
91b52a1ade
commit
7efbd632c2
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ static int create_soundfile(t_canvas *canvas, const char *filename,
|
||||||
{
|
{
|
||||||
long datasize = nframes * nchannels * bytespersamp;
|
long datasize = nframes * nchannels * bytespersamp;
|
||||||
long longtmp;
|
long longtmp;
|
||||||
t_datachunk *aiffdc = (t_datachunk *)headerbuf + sizeof(t_aiff);
|
t_datachunk *aiffdc = (t_datachunk *)(headerbuf + sizeof(t_aiff));
|
||||||
static unsigned char AIFF_splrate[] = {0x40, 0x0e, 0xac, 0x44, 0, 0, 0, 0, 0, 0};
|
static unsigned char AIFF_splrate[] = {0x40, 0x0e, 0xac, 0x44, 0, 0, 0, 0, 0, 0};
|
||||||
static unsigned char datachunk_ID[] = {'S', 'S', 'N', 'D'};
|
static unsigned char datachunk_ID[] = {'S', 'S', 'N', 'D'};
|
||||||
if (strcmp(filenamebuf + strlen(filenamebuf)-4, ".aif") &&
|
if (strcmp(filenamebuf + strlen(filenamebuf)-4, ".aif") &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue