From ecfe3263e20720b750794b5c78c30715b0d2bd18 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 16 Apr 2012 11:55:52 -0500 Subject: [PATCH] FS-4114 --resolve this bug is actually in libsndfile, if its not fixed in the latest version we probably should report it upstream --- libs/libsndfile/.update | 2 +- libs/libsndfile/src/ima_adpcm.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/libsndfile/.update b/libs/libsndfile/.update index f195187f18..31cb06ca73 100644 --- a/libs/libsndfile/.update +++ b/libs/libsndfile/.update @@ -1 +1 @@ -Thu May 21 16:11:03 CDT 2009 +Mon Apr 16 11:52:47 CDT 2012 diff --git a/libs/libsndfile/src/ima_adpcm.c b/libs/libsndfile/src/ima_adpcm.c index a9bd6ef521..e3ab38d752 100644 --- a/libs/libsndfile/src/ima_adpcm.c +++ b/libs/libsndfile/src/ima_adpcm.c @@ -724,7 +724,9 @@ ima_seek (SF_PRIVATE *psf, int mode, sf_count_t offset) if (offset == 0) { psf_fseek (psf, psf->dataoffset, SEEK_SET) ; pima->blockcount = 0 ; - pima->decode_block (psf, pima) ; + if (pima->decode_block) { + pima->decode_block (psf, pima) ; + } pima->samplecount = 0 ; return 0 ; } ;