avcodec/h264idct_template: fix multiple runtime error: signed integer overflow