diff --git a/dumb/src/helpers/resamp3.inc b/dumb/src/helpers/resamp3.inc index a820e94c1d..3d61bfff1a 100644 --- a/dumb/src/helpers/resamp3.inc +++ b/dumb/src/helpers/resamp3.inc @@ -58,7 +58,7 @@ int32 dumb_resample(DUMB_RESAMPLER *resampler, sample_t *dst, int32 dst_size, VO done = 0; dt = (int)(delta * 65536.0 + 0.5); - if (dt == 0) return 0; + if (dt == 0 || dt == 0x80000000) return 0; SET_VOLUME_VARIABLES; if (VOLUMES_ARE_ZERO) dst = NULL; diff --git a/dumb/src/it/readam.c b/dumb/src/it/readam.c index 70dafadcf3..9910b1d823 100644 --- a/dumb/src/it/readam.c +++ b/dumb/src/it/readam.c @@ -24,9 +24,6 @@ #include "internal/it.h" #include "internal/riff.h" -DUH *dumb_read_riff_amff( struct riff * stream ); -DUH *dumb_read_riff_am( struct riff * stream ); - static int it_riff_am_process_sample( IT_SAMPLE * sample, const unsigned char * data, int len, int ver ) { int header_length; diff --git a/dumb/src/it/readoldpsm.c b/dumb/src/it/readoldpsm.c index 1d72605086..3c764af253 100644 --- a/dumb/src/it/readoldpsm.c +++ b/dumb/src/it/readoldpsm.c @@ -291,7 +291,7 @@ static int it_old_psm_read_patterns(IT_PATTERN * pattern, DUMBFILE * f, int num, if (channel >= chans) { //channel = 0; - goto error_fb; + //goto error_fb; } if (flags & 0x80) { if ((*ptr < 60) && (channel < pchans)) { diff --git a/dumb/src/it/readpsm.c b/dumb/src/it/readpsm.c index fa19943b92..68d7ab7dc0 100644 --- a/dumb/src/it/readpsm.c +++ b/dumb/src/it/readpsm.c @@ -1271,7 +1271,7 @@ DUH *DUMBEXPORT dumb_read_psm_quick(DUMBFILE *f, int subsong) if ( ver ) { tag[2][0] = "FORMATVERSION"; - sprintf(version, "%d", ver); + itoa(ver, version, 10); tag[2][1] = (const char *) &version; ++n_tags; }