for mp3's, skip all initial frames that aren't layer 3 so we can be sure to
get the correct bitrate for computing the song length git-svn-id: https://svn.musicpd.org/mpd/trunk@1783 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
26741dcdeb
commit
643d7e77b1
@ -297,6 +297,9 @@ int decodeNextFrameHeader(mp3DecodeData * data, MpdTag ** tag) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(data->frame.header.layer != MAD_LAYER_III) {
|
||||
return DECODE_SKIP;
|
||||
}
|
||||
|
||||
return DECODE_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user