1
1
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:
Mattias Wadman 2021-08-13 14:21:32 +02:00
parent 2b8d11db20
commit 60df04b098

View File

@ -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},