ref: 30b3a2c82db22e44acccb8c92fa3ce77f0be0ef5
parent: ab037091ac784dff043f69993e3da4c7163fa590
author: lieff <[email protected]>
date: Thu Jun 25 08:46:36 EDT 2020
minimp3_ex: fix vbrtag delay skip for mp3dec_load*(). See https://github.com/lieff/minimp3/issues/71
--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -460,7 +460,7 @@
size_t skip = MINIMP3_MIN(samples, to_skip);
to_skip -= skip;
samples -= skip;
- memmove(info->buffer, info->buffer + skip, samples);
+ memmove(info->buffer, info->buffer + skip, samples*sizeof(mp3d_sample_t));
}
info->samples += samples;
avg_bitrate_kbps += frame_info.bitrate_kbps;