mp3_find_frame should try to find three consecutive frames (like
_mp3_parse) before returning the offset. Current implementation only
check for one frame.
use Audio::Scan;
print Audio::Scan->find_frame( "bad.mp3", 3300 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3310 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3320 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3330 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3340 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3350 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3360 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3370 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3380 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3390 ) . "\n";
print Audio::Scan->find_frame( "bad.mp3", 3400 ) . "\n";
Output:
53034 Bad
53034 Bad
53498
53498
53498
53612 Bad
53916
54334
54334
54334
54680 Bad
Subject: | bad.mp3 |
Message body not shown because it is not plain text.