#include <stdio.h>
#include <string.h>
-#include <pico/pico_int.h>
-#include <pico/sound/mix.h>
+#include "../../pico/pico_int.h"
+#include "../../pico/sound/mix.h"
#include "mp3.h"
static FILE *mp3_current_file;
if (ret <= 0) {
// try to read somewhere around the middle
fseek(f, len / 2, SEEK_SET);
- fread(buf, 1, sizeof(buf), f);
- ret = try_get_bitrate(buf, sizeof(buf));
+ ret = fread(buf, 1, sizeof(buf), f);
+ if (ret == sizeof(buf))
+ ret = try_get_bitrate(buf, sizeof(buf));
}
if (ret > 0)
retval = ret;