Add av_clipf() function to common.h and use it in ra288.c