Package list squeezelite / 323bdeb
updated comment to note limitation of mad gapless update Adrian Smith 8 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
242242 m->samples -= frames;
243243 if (m->samples > 0 && eos && !(m->stream.next_frame[0] == 0xff && (m->stream.next_frame[1] & 0xf0) == 0xf0)) {
244244 // this is the last frame to be decoded, but more samples expected so we must have skipped, remove padding
245 // note this only works if the padding is less than one frame of 1152 bytes otherswise some gap will remain
245246 LOG_DEBUG("gapless: early end - trimming padding from end");
246247 if (frames >= m->padding) {
247248 frames -= m->padding;