src/sd2.c : Minor changes to log messages.

This commit is contained in:
Erik de Castro Lopo 2008-05-31 17:58:11 +10:00
parent 4d7c4616d3
commit a848139744
2 changed files with 12 additions and 4 deletions

View File

@ -5,12 +5,20 @@
double64_(le|be)_(read|write). Hook into build and testsuite.
* src/double64.c src/float32.c
Fix bugs in functions found by test added above.
Fix bugs in functions found by test added above. Thanks to Nicolas Castagne
for reporting this bug.
* src/sndfile.h.in
Change time_reference_(low|high) entries of SF_BROADCAST_INFO struct to
unsigned.
* examples/sndfile-info.c
Print out the BEXT time reference in a sensible format.
2008-05-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/*.c
Fizz fixes.
Fuzz fixes.
* src/ogg.c
Add call to ogg_stream_clear to fix valgrind warning.

View File

@ -546,13 +546,13 @@ parse_str_rsrc (SF_PRIVATE *psf, SD2_RSRC * rsrc)
data_offset = rsrc->data_offset + read_int (rsrc->rsrc_data, rsrc->item_offset + k * 12 + 4) ;
if (data_offset < 0 || data_offset > rsrc->rsrc_len)
{ psf_log_printf (psf, "Bad data offset (%d). Exiting parser.\n", data_offset) ;
{ psf_log_printf (psf, "Exiting parser on data offset of %d.\n", data_offset) ;
break ;
} ;
data_len = read_int (rsrc->rsrc_data, data_offset) ;
if (data_len < 0 || data_len > rsrc->rsrc_len)
{ psf_log_printf (psf, "Bad data length (%d). Exiting parser.\n", data_len) ;
{ psf_log_printf (psf, "Exiting parser on data length of %d.\n", data_len) ;
break ;
} ;