Index: apps/metadata/flac.c =================================================================== --- apps/metadata/flac.c (revision 22076) +++ apps/metadata/flac.c (working copy) @@ -96,7 +96,7 @@ return false; } - id3->bitrate = (id3->filesize * 8) / id3->length; + id3->bitrate = ((int64_t) id3->filesize * 8) / id3->length; } else if (type == 4) /* 4 is the VORBIS_COMMENT block */ { Index: apps/codecs/flac.c =================================================================== --- apps/codecs/flac.c (revision 22076) +++ apps/codecs/flac.c (working copy) @@ -172,7 +172,8 @@ } if (found_streaminfo) { - fc->bitrate = ((fc->filesize-fc->metadatalength) * 8) / fc->length; + fc->bitrate = ((int64_t) (fc->filesize-fc->metadatalength) * 8) + / fc->length; return true; } else { return false;