mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
cuesheet.c: Allow quotes around ISRC field
With this change, flac now accepts cuesheets where the ISRC field is enclosed in double quotes. Added a test for this as well. Closes: https://sourceforge.net/p/flac/bugs/436/
This commit is contained in:
@@ -404,7 +404,7 @@ static FLAC__bool local__cuesheet_parse_(FILE *file, const char **error_message,
|
||||
*error_message = "ISRC command must come after TRACK but before INDEX";
|
||||
return false;
|
||||
}
|
||||
if(0 == (field = local__get_field_(&line, /*allow_quotes=*/false))) {
|
||||
if(0 == (field = local__get_field_(&line, /*allow_quotes=*/true))) {
|
||||
*error_message = "ISRC is missing ISRC number";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user