decoder/gme: fix song duration
The unit of gme_info_t::length is milliseconds, not centiseconds.
This commit is contained in:
parent
f06fe1ea98
commit
8b62127770
1
NEWS
1
NEWS
|
@ -2,6 +2,7 @@ ver 0.18.13 (not yet released)
|
||||||
* decoder
|
* decoder
|
||||||
- dsdiff, dsf: fix endless loop on malformed file
|
- dsdiff, dsf: fix endless loop on malformed file
|
||||||
- ffmpeg: support ffmpeg/libav version 11
|
- ffmpeg: support ffmpeg/libav version 11
|
||||||
|
- gme: fix song duration
|
||||||
* fix state file saver
|
* fix state file saver
|
||||||
* fix build failure on Darwin
|
* fix build failure on Darwin
|
||||||
|
|
||||||
|
|
|
@ -235,7 +235,7 @@ gme_scan_file(const char *path_fs,
|
||||||
|
|
||||||
if (ti->length > 0)
|
if (ti->length > 0)
|
||||||
tag_handler_invoke_duration(handler, handler_ctx,
|
tag_handler_invoke_duration(handler, handler_ctx,
|
||||||
ti->length / 100);
|
ti->length / 1000);
|
||||||
|
|
||||||
if (ti->song != nullptr) {
|
if (ti->song != nullptr) {
|
||||||
if (gme_track_count(emu) > 1) {
|
if (gme_track_count(emu) > 1) {
|
||||||
|
|
Loading…
Reference in New Issue