# HG changeset patch # User nenolod # Date 1141237992 28800 # Node ID 0f0659a2d5fb03736fb625ea1752151650bb28f5 # Parent 8c406d5708fdc95fdb402f4748b830d39d53fbb3 [svn] ten iterations? diff -r 8c406d5708fd -r 0f0659a2d5fb Plugins/Input/mpg123/mpg123.c --- a/Plugins/Input/mpg123/mpg123.c Wed Mar 01 10:26:30 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Wed Mar 01 10:33:12 2006 -0800 @@ -250,12 +250,12 @@ if (vfs_fread(tmp, 1, 4, file) != 4) goto done; head = convert_to_header(tmp); - while (!mpg123_head_check(head) && ++cyc < 5) { + while (!mpg123_head_check(head) && ++cyc < 10) { /* * The mpeg-stream can start anywhere in the file, * so we check the entire file * - * Incorrect! We give up past five iterations of this + * Incorrect! We give up past ten iterations of this * code for safety's sake. Buffer overflows suck. --nenolod */ /* Optimize this */