mirror of
https://github.com/aler9/gortsplib
synced 2025-10-27 09:11:17 +08:00
improve coverage (#168)
This commit is contained in:
@@ -8,6 +8,10 @@ import (
|
||||
)
|
||||
|
||||
func getPictureOrderCount(buf []byte, sps *SPS) (uint32, error) {
|
||||
if len(buf) < 6 {
|
||||
return 0, fmt.Errorf("not enough bits")
|
||||
}
|
||||
|
||||
buf = EmulationPreventionRemove(buf[:6])
|
||||
|
||||
buf = buf[1:]
|
||||
|
||||
Reference in New Issue
Block a user