From 6e2ff16018d18b76b504c7e1fa27e0ff035bc8ee Mon Sep 17 00:00:00 2001 From: beveloper Date: Sun, 25 Jan 2004 22:07:07 +0000 Subject: [PATCH] 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 --- src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp b/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp index e6f4d17318..d20cd07829 100644 --- a/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp +++ b/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp @@ -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) {