Doubled the buffer size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@409 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0bd77a6a80
commit
1ba5d1f6b6
1 changed files with 5 additions and 5 deletions
|
@ -4,21 +4,21 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
FILE *f;
|
||||
int i;
|
||||
unsigned char buf[64000];
|
||||
unsigned char buf[128000];
|
||||
|
||||
f = fopen("mp.mp3", "r");
|
||||
|
||||
if(f)
|
||||
{
|
||||
if(fread(buf, 1, 64000, f) < 64000)
|
||||
if(fread(buf, 1, 128000, f) < 128000)
|
||||
{
|
||||
fprintf(stderr, "FAN!\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
printf("int mp3datalen = 64000;\n");
|
||||
printf("unsigned char mp3data[64000] =\n{");
|
||||
for(i = 0;i < 64000;i++)
|
||||
printf("int mp3datalen = 128000;\n");
|
||||
printf("unsigned char mp3data[128000] =\n{");
|
||||
for(i = 0;i < 128000;i++)
|
||||
{
|
||||
if(i % 8 == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue