14 lines
265 B
Go
14 lines
265 B
Go
package main
|
|
|
|
func parsePacket(in []byte) (c configuration, isStereo bool, frames [][]byte, err error) {
|
|
if len(in) < 1 {
|
|
err = errTooShortForTableOfContentsHeader
|
|
return
|
|
}
|
|
|
|
tocHeader := tableOfContentsHeader(in[0])
|
|
c = tocHeader.configuration()
|
|
|
|
return
|
|
}
|