Skip to content

Commit

Permalink
mp3_frame: Only supports layer 3, fixes some probe issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 12, 2021
1 parent 2b8d11d commit 60df04b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions format/mpeg/mp3_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 60df04b

Please sign in to comment.