1
0
Fork 0
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:
Linus Nielsen Feltzing 2003-04-01 21:58:50 +00:00
parent a67e8ec52f
commit 9218481199

View file

@ -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);