mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
src/wavlike.c: Drop wavlike_subchunk_parse unreachable error handling code
We already read the chunk type so bytesread is always > 0, and (chunk_size >= chunk_length) will thus always have been covered by (bytesread + chunk_size > chunk_length) just above.
This commit is contained in:
parent
140b241837
commit
c9ee5f2ff2
@ -1096,9 +1096,6 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length)
|
||||
{ psf_log_printf (psf, " %M : %u\n", chunk, chunk_size) ;
|
||||
bytesread += psf_binheader_readf (psf, "j", chunk_size) ;
|
||||
} ;
|
||||
|
||||
if (chunk_size >= chunk_length)
|
||||
return 0 ;
|
||||
break ;
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user