mirror of
https://github.com/wader/fq.git
synced 2024-11-27 06:04:47 +03:00
flac_metadatablocks: type >= 127 is invalid
This commit is contained in:
parent
509b8f8c50
commit
984ba1aa43
@ -1,6 +1,7 @@
|
||||
package flac
|
||||
|
||||
// TODO: 24 bit picture length truncate warning
|
||||
// TODO: Cuesheet
|
||||
|
||||
import (
|
||||
"github.com/wader/fq/format"
|
||||
@ -110,7 +111,11 @@ func metadatablocskDecode(d *decode.D, in interface{}) interface{} {
|
||||
}
|
||||
})
|
||||
default:
|
||||
d.FieldBitBufLen("data", int64(length*8))
|
||||
if typ < 127 {
|
||||
d.FieldBitBufLen("data", int64(length*8))
|
||||
} else {
|
||||
d.Invalid("invalid block type")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user