mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
Clean loops for readable metadata
This commit is contained in:
parent
4b3ec51667
commit
d938f60048
@ -526,6 +526,13 @@ static VGMSTREAM * init_vgmstream_internal(STREAMFILE *streamFile) {
|
|||||||
try_dual_file_stereo(vgmstream, streamFile, init_vgmstream_functions[i]);
|
try_dual_file_stereo(vgmstream, streamFile, init_vgmstream_functions[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* clean as loops are readable metadata but loop fields may contain garbage
|
||||||
|
* (done *after* dual stereo as it needs loop fields to match) */
|
||||||
|
if (!vgmstream->loop_flag) {
|
||||||
|
vgmstream->loop_start_sample = 0;
|
||||||
|
vgmstream->loop_end_sample = 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef VGM_USE_FFMPEG
|
#ifdef VGM_USE_FFMPEG
|
||||||
/* check FFmpeg streams here, for lack of a better place */
|
/* check FFmpeg streams here, for lack of a better place */
|
||||||
if (vgmstream->coding_type == coding_FFmpeg) {
|
if (vgmstream->coding_type == coding_FFmpeg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user