Tried to add code to take into account possible padding on each MP3 frame. (adjusting the size of data byte[] based on padding)