decoder/gme: fix song duration

The unit of gme_info_t::length is milliseconds, not centiseconds.
This commit is contained in:
Max Kellermann 2014-08-29 23:03:29 +02:00
parent f06fe1ea98
commit 8b62127770
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -2,6 +2,7 @@ ver 0.18.13 (not yet released)
* decoder
- dsdiff, dsf: fix endless loop on malformed file
- ffmpeg: support ffmpeg/libav version 11
- gme: fix song duration
* fix state file saver
* fix build failure on Darwin

View File

@ -235,7 +235,7 @@ gme_scan_file(const char *path_fs,
if (ti->length > 0)
tag_handler_invoke_duration(handler, handler_ctx,
ti->length / 100);
ti->length / 1000);
if (ti->song != nullptr) {
if (gme_track_count(emu) > 1) {