forked from len0rd/rockbox
Ooops, forgot to check for frame count overflow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3508 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a67e8ec52f
commit
9218481199
1 changed files with 5 additions and 0 deletions
|
|
@ -1873,6 +1873,11 @@ static void mpeg_thread(void)
|
|||
if(mpeg_file < 0)
|
||||
panicf("rec upd: %d", mpeg_file);
|
||||
|
||||
/* If the number of recorded frames have reached 0x7ffff,
|
||||
we can no longer trust it */
|
||||
if(num_recorded_frames == 0x7ffff)
|
||||
num_recorded_frames = 0;
|
||||
|
||||
create_xing_header(mpeg_file, 0, num_rec_bytes,
|
||||
mp3buf, num_recorded_frames, NULL,
|
||||
false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue