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:
beveloper 2004-01-25 22:07:07 +00:00
parent df016bba35
commit 6e2ff16018

View File

@ -224,6 +224,8 @@ mp3Decoder::DecodeNextChunk()
// resync after a seek
if (fNeedSync) {
if (chunkSize > 4 && GetFrameLength(chunkBuffer) > 0) {
} else
if (chunkSize > 5200) { // mp3 reader always delivers synced frames smaller than 5200 bytes
// wav reader and others don't do that
while (chunkSize > 100) {