mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fix some warnings
This commit is contained in:
parent
8b43bc737b
commit
8e5639bc3d
2 changed files with 8 additions and 6 deletions
|
@ -90,8 +90,9 @@ int mp3_get_bitrate(void *f_, int len)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue