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:
parent
24e6dffa50
commit
fee06d68c7
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue