avutil/common: Fix integer overflow in av_clip_uint8_c() and av_clip_uint16_c()