Commit 13cca01c authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent 95293aad
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment