From fa0d33f9337968533b0857238be954a5bc4bac16 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 21 Jun 2011 20:28:03 +1000 Subject: [PATCH] src/wav.c : Jump over 'FLLR' chunks. --- ChangeLog | 3 +++ src/wav.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 53a96f89..0c224433 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ Accept broken WAV files with blockalign == 0. Thanks to Olivier Tristan for providing example files. + * src/wav.c + Jump over 'FLLR' chunks. + 2011-06-14 Erik de Castro Lopo * src/sndfile.h.in diff --git a/src/wav.c b/src/wav.c index 62c142c6..f8630960 100644 --- a/src/wav.c +++ b/src/wav.c @@ -66,6 +66,7 @@ #define clm_MARKER (MAKE_MARKER ('c', 'l', 'm', ' ')) #define elmo_MARKER (MAKE_MARKER ('e', 'l', 'm', 'o')) #define cart_MARKER (MAKE_MARKER ('c', 'a', 'r', 't')) +#define FLLR_MARKER (MAKE_MARKER ('F', 'L', 'L', 'R')) #define exif_MARKER (MAKE_MARKER ('e', 'x', 'i', 'f')) #define ever_MARKER (MAKE_MARKER ('e', 'v', 'e', 'r')) @@ -596,6 +597,7 @@ wav_read_header (SF_PRIVATE *psf, int *blockalign, int *framesperblock) case plst_MARKER : case DISP_MARKER : case MEXT_MARKER : + case FLLR_MARKER : psf_binheader_readf (psf, "4", &dword) ; psf_log_printf (psf, "%M : %u\n", marker, dword) ; dword += (dword & 1) ;