lavu: prevent overflow in av_clip_intp2_c
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 14 Jan 2016 00:15:22 +0000 (01:15 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 14 Jan 2016 23:32:54 +0000 (00:32 +0100)
commitf8bc0137bdf8da8806ef75d30bb749fcc301bb35
treeb86e92165b8a6115b55c2280e4007f8e911a3c1d
parent2e4fd16f5b9084b86e6872fddc365d0528383259
lavu: prevent overflow in av_clip_intp2_c

This fixes ubsan runtime error: signed integer overflow: 8388608 +
2140274688 cannot be represented in type 'int'

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavutil/common.h