Skip to content

Commit

Permalink
Merge branch '2.0.x' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Oct 22, 2019
2 parents 1f2c301 + 50dd443 commit 41e77af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sfloader/fluid_sfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ fluid_sample_set_sound_data(fluid_sample_t *sample,
goto error_rec;
}

FLUID_MEMSET(sample->data, 0, storedNbFrames);
FLUID_MEMSET(sample->data, 0, storedNbFrames * sizeof(short));
FLUID_MEMCPY(sample->data + SAMPLE_LOOP_MARGIN, data, nbframes * sizeof(short));

if(data24 != NULL)
Expand All @@ -628,7 +628,7 @@ fluid_sample_set_sound_data(fluid_sample_t *sample,
/* pointers */
/* all from the start of data */
sample->start = SAMPLE_LOOP_MARGIN;
sample->end = SAMPLE_LOOP_MARGIN + storedNbFrames - 1;
sample->end = SAMPLE_LOOP_MARGIN + nbframes - 1;
}
else
{
Expand Down

0 comments on commit 41e77af

Please sign in to comment.