Commit 3de7413a authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

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/
parent 50af1bcf
......@@ -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;
}
......
......@@ -91,3 +91,4 @@ POSITIVE cuesheets/good.001.cue
POSITIVE cuesheets/good.002.dos_format.cue
POSITIVE cuesheets/good.003.missing_final_newline.cue
POSITIVE cuesheets/good.004.dos_format.missing_final_newline.cue
POSITIVE cuesheets/good.005.quoted.isrc.cue
TRACK 01 AUDIO
TITLE "Foo"
PERFORMER "Bar"
DISC_ID ""
ISRC "US-SM1-23-45678"
INDEX 01 00:00:00
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment