src/wav.c : Jump over 'FLLR' chunks.

This commit is contained in:
Erik de Castro Lopo 2011-06-21 20:28:03 +10:00
parent 2cb352b6f0
commit fa0d33f933
2 changed files with 5 additions and 0 deletions

View File

@ -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 <erikd AT mega-nerd DOT com>
* src/sndfile.h.in

View File

@ -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) ;