mirror of https://bitbucket.org/ausocean/av.git
codec/h264/h264dec: made mini faster and more readable
This commit is contained in:
parent
4e29a70b78
commit
a7abd76113
|
@ -51,7 +51,10 @@ func maxi(a, b int) int {
|
|||
}
|
||||
|
||||
func mini(a, b int) int {
|
||||
return int(math.Min(float64(a), float64(b)))
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func absi(i int) int {
|
||||
|
|
Loading…
Reference in New Issue