mirror of
https://github.com/wader/fq.git
synced 2024-12-23 21:31:33 +03:00
mp3_frame: Only supports layer 3, fixes some probe issues
This commit is contained in:
parent
2b8d11db20
commit
60df04b098
@ -150,6 +150,9 @@ func frameDecode(d *decode.D, in interface{}) interface{} {
|
||||
panic("unreachable")
|
||||
}
|
||||
})
|
||||
if mpegLayer != 3 {
|
||||
d.Invalid("Not layer 3")
|
||||
}
|
||||
// [mpeg layer][mpeg version]
|
||||
var samplesPerFrameIndex = map[uint][4]uint{
|
||||
0: [...]uint{0, 0, 0, 0},
|
||||
|
Loading…
Reference in New Issue
Block a user