diff --git a/codec/h264/h264dec/helpers.go b/codec/h264/h264dec/helpers.go index c15b2416..ae4c935d 100644 --- a/codec/h264/h264dec/helpers.go +++ b/codec/h264/h264dec/helpers.go @@ -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 {