add AC-3 decoder and encoder (#427)

This commit is contained in:
Alessandro Ros
2023-09-19 22:15:39 +02:00
committed by GitHub
parent 747de35cbc
commit fc2a10a499
26 changed files with 1670 additions and 81 deletions

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(false)
[]byte("\x000\vw00A")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\x010\vw00A")
bool(false)
[]byte("\x030")
bool(true)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\x030")
bool(true)
[]byte("")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\x000")
bool(false)
[]byte("\x030")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("0")
bool(true)
[]byte("\x010")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("")
bool(true)
[]byte("")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\x010\vw00A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
bool(false)
[]byte("\x030")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("")
bool(true)
[]byte("00")
bool(false)