diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 4cefed20c2..15c57f58e3 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -719,7 +719,7 @@ bool audio_load_track(int offset, bool start_play, int peek_offset) /* Calculate track length (in ms) and estimate the bitrate (in kbit/s) */ tracks[track_widx].id3.length=(totalsamples/tracks[track_widx].id3.frequency)*1000; - tracks[track_widx].id3.bitrate=(tracks[track_widx].id3.frequency*bytespersample)/1024; + tracks[track_widx].id3.bitrate=(tracks[track_widx].id3.frequency*bytespersample)/(1024/8); lseek(fd, 0, SEEK_SET); strncpy(tracks[track_widx].id3.path,trackname,sizeof(tracks[track_widx].id3.path)); |