diff --git a/format/flac/flac_metadatablocks.go b/format/flac/flac_metadatablocks.go index 87bc7d8a1..6795c95c9 100644 --- a/format/flac/flac_metadatablocks.go +++ b/format/flac/flac_metadatablocks.go @@ -110,12 +110,11 @@ func metadatablocskDecode(d *decode.D, in interface{}) interface{} { }) } }) + case MetadataBlockApplication: + d.FieldUTF8("id", 4) + d.FieldBitBufLen("data", int64((length-4)*8)) default: - if typ < 127 { - d.FieldBitBufLen("data", int64(length*8)) - } else { - d.Invalid("invalid block type") - } + d.FieldBitBufLen("data", int64(length*8)) } }) }