Menu

#3 Size of frame not calculated correctly

open
nobody
None
5
2011-11-01
2011-11-01
Anonymous
No

Your function for reading sizes is not working correctly. As result of this if there is big sized frame on beginning all other frames will not be proccesed correctly. To pinpoint problem is in file mplib_s.c in function id3_unsync32(unsigned char* c, int start)
line :
return c[start+3] + (c[start+2] << 7) + (c[start+1] << 14) + (c[start] << 21);
should be :
return c[start+3] + (c[start+2] << 8) + (c[start+1] << 16) + (c[start] << 24);

Discussion


Log in to post a comment.