Commit 3ad164f4 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Bump mp3 detection frames to 30 to avoid false positives.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 29d69cea
...@@ -77,7 +77,7 @@ mp3_detect (const string& filename) ...@@ -77,7 +77,7 @@ mp3_detect (const string& filename)
size_t buffer_bytes = mpg123_outblock (mh); size_t buffer_bytes = mpg123_outblock (mh);
unsigned char buffer[buffer_bytes]; unsigned char buffer[buffer_bytes];
for (size_t i = 0; i < 10; i++) for (size_t i = 0; i < 30; i++)
{ {
size_t done; size_t done;
err = mpg123_read (mh, buffer, buffer_bytes, &done); err = mpg123_read (mh, buffer, buffer_bytes, &done);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment