small test, but this resync thing doesn't work well
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6305 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -224,6 +224,8 @@ mp3Decoder::DecodeNextChunk()
|
|||||||
|
|
||||||
// resync after a seek
|
// resync after a seek
|
||||||
if (fNeedSync) {
|
if (fNeedSync) {
|
||||||
|
if (chunkSize > 4 && GetFrameLength(chunkBuffer) > 0) {
|
||||||
|
} else
|
||||||
if (chunkSize > 5200) { // mp3 reader always delivers synced frames smaller than 5200 bytes
|
if (chunkSize > 5200) { // mp3 reader always delivers synced frames smaller than 5200 bytes
|
||||||
// wav reader and others don't do that
|
// wav reader and others don't do that
|
||||||
while (chunkSize > 100) {
|
while (chunkSize > 100) {
|
||||||
|
|||||||
Reference in New Issue
Block a user