fix minor bug printing unknown aiff subchunks (SF bug #1267476: https://sourceforge.net/tracker/index.php?func=detail&aid=1267476&group_id=13478&atid=113478)
This commit is contained in:
parent
4731c751d1
commit
e7819525ee
@ -88,6 +88,7 @@
|
|||||||
<li>Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.</li>
|
<li>Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.</li>
|
||||||
<li>Fixed a bug with --sector-align where appended samples were not always totally silent (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=1237707&group_id=13478&atid=113478">SF #1237707</a>).</li>
|
<li>Fixed a bug with --sector-align where appended samples were not always totally silent (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=1237707&group_id=13478&atid=113478">SF #1237707</a>).</li>
|
||||||
<li>Fixed bugs with --sector-align and raw input files.</li>
|
<li>Fixed bugs with --sector-align and raw input files.</li>
|
||||||
|
<li>Fixed a bug printing out unknown AIFF subchunk names (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=1267476&group_id=13478&atid=113478">SF #1267476</a>).</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -194,7 +194,7 @@ int flac__encode_aif(FILE *infile, long infilesize, const char *infilename, cons
|
|||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
size_t c= 0U;
|
size_t c= 0U;
|
||||||
char chunk_id[4];
|
char chunk_id[5] = { '\0', '\0', '\0', '\0', '\0' }; /* one extra byte for terminating NUL so we can also treat it like a C string */
|
||||||
|
|
||||||
/* chunk identifier; really conservative about behavior of fread() and feof() */
|
/* chunk identifier; really conservative about behavior of fread() and feof() */
|
||||||
if(feof(infile) || ((c= fread(chunk_id, 1U, 4U, infile)), c==0U && feof(infile)))
|
if(feof(infile) || ((c= fread(chunk_id, 1U, 4U, infile)), c==0U && feof(infile)))
|
||||||
|
Loading…
Reference in New Issue
Block a user