Commit 8b621277 authored by Max Kellermann's avatar Max Kellermann

decoder/gme: fix song duration

The unit of gme_info_t::length is milliseconds, not centiseconds.
parent f06fe1ea
......@@ -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
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment