mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Fix bug where FLAC-to-FLAC transcoding of a corrupted FLAC file would truncate the transcoded file at the first error (SF#1615019: https://sourceforge.net/tracker/index.php?func=detail&aid=1615019&group_id=13478&atid=113478)
This commit is contained in:
@@ -1486,6 +1486,10 @@ int flac__encode_flac(FILE *infile, off_t infilesize, const char *infilename, co
|
||||
goto fubar2; /*@@@ yuck */
|
||||
}
|
||||
}
|
||||
if(decoder_data.fatal_error) {
|
||||
flac__utils_printf(stderr, 1, "%s: ERROR: while decoding FLAC input, state = %s\n", encoder_session.inbasefilename, FLAC__stream_decoder_get_resolved_state_string(decoder));
|
||||
goto fubar2; /*@@@ yuck */
|
||||
}
|
||||
}
|
||||
|
||||
FLAC__stream_decoder_delete(decoder);
|
||||
|
||||
Reference in New Issue
Block a user