codec/h264/h264dec: made mini faster and more readable

This commit is contained in:
Saxon 2019-08-15 01:19:13 +09:30
parent 4e29a70b78
commit a7abd76113
1 changed files with 4 additions and 1 deletions

View File

@ -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 {