Don't decode the first frame if it has a xing tag, not only if it has a xing tag with a frame count
git-svn-id: https://svn.musicpd.org/mpd/trunk@4464 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
95293aadcd
commit
13cca01c7b
@ -646,10 +646,11 @@ static int decodeFirstFrame(mp3DecodeData * data, DecoderControl * dc,
|
||||
}
|
||||
|
||||
if (found_xing) {
|
||||
data->muteFrame = MUTEFRAME_SKIP;
|
||||
|
||||
if (xing.flags & XING_FRAMES) {
|
||||
mad_timer_t duration = data->frame.header.duration;
|
||||
mad_timer_multiply(&duration, xing.frames);
|
||||
data->muteFrame = MUTEFRAME_SKIP;
|
||||
data->totalTime = ((float)mad_timer_count(duration, MAD_UNITS_MILLISECONDS)) / 1000;
|
||||
data->maxFrames = xing.frames;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user