1
0
Fork 0
forked from len0rd/rockbox

Bug fix: First dereference, then subscript, instead of vice versa. The old code never stored the correct header, and even caused NULL pointer accesses.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5424 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-11-18 20:19:40 +00:00
parent 24e6dffa50
commit fee06d68c7

View file

@ -211,9 +211,9 @@ static void mp3_callback(unsigned char** start, int* size)
sent = MIN(queue[queue_read].len, 0xFFFF);
*start = p_lastclip = queue[queue_read].buf;
*size = sent;
curr_hd[0] = *start[1];
curr_hd[1] = *start[2];
curr_hd[2] = *start[3];
curr_hd[0] = (*start)[1];
curr_hd[1] = (*start)[2];
curr_hd[2] = (*start)[3];
}
else if (silence_add && p_silence != NULL /* want and can add silence */
&& p_lastclip < p_thumbnail) /* and wasn't playing thumbnail file */