avcodec/truemotion2: use av_reallocp_array() and check return value