copyHeaderFields(mp3AudioHeader, track);
long totalSamples = trackData.getTotalSamples();
int enc_delay = GAPLESS_DELAY;
XingFrame xingFrame = mp3AudioHeader.getXingFrame();
if (xingFrame != null) {
LameFrame lameFrame = xingFrame.getLameFrame();
if (lameFrame != null) {
long length = totalSamples;
enc_delay += lameFrame.getEncDelay();
int enc_padding = lameFrame.getEncPadding() - GAPLESS_DELAY;
if (enc_padding < length)