Size of frame not calculated correctly
Brought to you by:
lugburg
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);