decoder/mad: don't count the Xing/LAME metadata frame
The Xing/LAME frame indicates how many frames there are, but that excludes the initial Xing/LAME frame. Therefore, it should not be counted. This fixes an off-by-one bug which caused the last frame to be skipped, fixing one part of https://github.com/MusicPlayerDaemon/MPD/issues/601
This commit is contained in:
parent
4f56fdc397
commit
9b99a9897a
@ -905,7 +905,6 @@ MadDecoder::Read() noexcept
|
|||||||
|
|
||||||
case MadDecoderMuteFrame::SKIP:
|
case MadDecoderMuteFrame::SKIP:
|
||||||
mute_frame = MadDecoderMuteFrame::NONE;
|
mute_frame = MadDecoderMuteFrame::NONE;
|
||||||
UpdateTimerNextFrame();
|
|
||||||
break;
|
break;
|
||||||
case MadDecoderMuteFrame::SEEK:
|
case MadDecoderMuteFrame::SEEK:
|
||||||
if (elapsed_time >= seek_time)
|
if (elapsed_time >= seek_time)
|
||||||
|
Loading…
Reference in New Issue
Block a user