Commit c0b755f8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix overflow in AV1 parser.

parent 9214df7f
......@@ -65,6 +65,9 @@ func Keyframe(codec string, packet *rtp.Packet) (bool, bool) {
if len(data) <= offset {
return nil, offset, offset > 0
}
if offset >= 4 {
return nil, offset, true
}
l := data[offset]
length |= int(l&0x7f) << (offset * 7)
offset++
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment